Skip to content

Commit 9ae58de

Browse files
authored
Merge pull request #4 from Zondax/fix-proxytype
fix ProxyType
2 parents 67134ac + 2e6d6f9 commit 9ae58de

12 files changed

Lines changed: 15050 additions & 14948 deletions

File tree

app/Makefile.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ APPVERSION_M=1
33
# This is the `spec_version` field of `Runtime`
44
APPVERSION_N=2060
55
# This is the patch version of this release
6-
APPVERSION_P=0
6+
APPVERSION_P=1

app/src/substrate/substrate_types_V1.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ parser_error_t _readProxyType_V1(parser_context_t* c, pd_ProxyType_V1_t* v)
380380
{
381381
CHECK_INPUT()
382382
CHECK_ERROR(_readUInt8(c, &v->value))
383-
if (v->value > 6) {
383+
if (v->value > 8) {
384384
return parser_value_out_of_range;
385385
}
386386
return parser_ok;
@@ -1513,6 +1513,12 @@ parser_error_t _toStringProxyType_V1(
15131513
case 6:
15141514
snprintf(outValue, outValueLen, "DexLiquidity");
15151515
break;
1516+
case 7:
1517+
snprintf(outValue, outValueLen, "StableAssetSwap");
1518+
break;
1519+
case 8:
1520+
snprintf(outValue, outValueLen, "StableAssetLiquidity");
1521+
break;
15161522
default:
15171523
return parser_print_not_supported;
15181524
}

0 commit comments

Comments
 (0)