From 030868cbfe77b2a34f0ad4d01608c67c67ebbce6 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Tue, 3 Oct 2023 12:48:12 +0530 Subject: [PATCH] change type to Compact --- app/src/substrate_dispatch_V2.c | 4 ++-- app/src/substrate_methods_V2.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/substrate_dispatch_V2.c b/app/src/substrate_dispatch_V2.c index 8938c97..bbbe3bb 100644 --- a/app/src/substrate_dispatch_V2.c +++ b/app/src/substrate_dispatch_V2.c @@ -1273,7 +1273,7 @@ __Z_INLINE parser_error_t _readMethod_contracts_call_V2( CHECK_ERROR(_readLookupasStaticLookupSource_V2(c, &m->dest)) CHECK_ERROR(_readCompactBalance(c, &m->value)) CHECK_ERROR(_readCompactu64(c, &m->gas_limit)) - CHECK_ERROR(_readCompactBalance(c, &m->storage_deposit_limit)) + CHECK_ERROR(_readCompactu128(c, &m->storage_deposit_limit)) CHECK_ERROR(_readBytes(c, &m->data)) return parser_ok; } @@ -6958,7 +6958,7 @@ parser_error_t _getMethod_ItemValue_V2( outValue, outValueLen, pageIdx, pageCount); case 3: /* contracts_call_V2 - storage_deposit_limit */; - return _toStringCompactBalance( + return _toStringCompactu128( &m->basic.contracts_call_V2.storage_deposit_limit, outValue, outValueLen, pageIdx, pageCount); diff --git a/app/src/substrate_methods_V2.h b/app/src/substrate_methods_V2.h index 6c27380..959182d 100644 --- a/app/src/substrate_methods_V2.h +++ b/app/src/substrate_methods_V2.h @@ -429,7 +429,7 @@ typedef struct { pd_LookupasStaticLookupSource_V2_t dest; pd_CompactBalance_t value; pd_Compactu64_t gas_limit; - pd_CompactBalance_t storage_deposit_limit; + pd_Compactu128_t storage_deposit_limit; pd_Bytes_t data; } pd_contracts_call_V2_t;