Skip to content

Commit f402df1

Browse files
authored
Merge pull request #5 from Zondax/fix-proxytype
fix ProxyType
2 parents 5b434d5 + 2410b4e commit f402df1

12 files changed

Lines changed: 14914 additions & 14528 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
@@ -397,7 +397,7 @@ parser_error_t _readProxyType_V1(parser_context_t* c, pd_ProxyType_V1_t* v)
397397
{
398398
CHECK_INPUT()
399399
CHECK_ERROR(_readUInt8(c, &v->value))
400-
if (v->value > 6) {
400+
if (v->value > 8) {
401401
return parser_value_out_of_range;
402402
}
403403
return parser_ok;
@@ -1573,6 +1573,12 @@ parser_error_t _toStringProxyType_V1(
15731573
case 6:
15741574
snprintf(outValue, outValueLen, "DexLiquidity");
15751575
break;
1576+
case 7:
1577+
snprintf(outValue, outValueLen, "StableAssetSwap");
1578+
break;
1579+
case 8:
1580+
snprintf(outValue, outValueLen, "StableAssetLiquidity");
1581+
break;
15761582
default:
15771583
return parser_print_not_supported;
15781584
}

0 commit comments

Comments
 (0)