From 52ac91eb5fd7aef6b97919548d67c643288a9824 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Sun, 1 Oct 2023 15:53:45 +0530 Subject: [PATCH] remove storage deposit limit for contracrs call --- app/src/substrate_dispatch_V2.c | 12 ++---------- app/src/substrate_methods_V2.h | 1 - 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/app/src/substrate_dispatch_V2.c b/app/src/substrate_dispatch_V2.c index ab8528b..83fd2b1 100644 --- a/app/src/substrate_dispatch_V2.c +++ b/app/src/substrate_dispatch_V2.c @@ -1273,7 +1273,6 @@ __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(_readOptionCompactu128_V2(c, &m->storage_deposit_limit)) CHECK_ERROR(_readBytes(c, &m->data)) return parser_ok; } @@ -2731,7 +2730,7 @@ uint8_t _getMethod_NumItems_V2(uint8_t moduleIdx, uint8_t callIdx) case 18711: /* module 73 call 24 */ return 2; case 4096: /* module 16 call 0 */ - return 5; + return 4; case 4098: /* module 16 call 2 */ return 6 ; case 4097: /* module 16 call 1 */ @@ -4364,8 +4363,6 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i case 2: return STR_IT_gas_limit; case 3: - return STR_IT_storage_deposit_limit; - case 4: return STR_IT_data; default: return NULL; @@ -6957,12 +6954,7 @@ parser_error_t _getMethod_ItemValue_V2( &m->basic.contracts_call_V2.gas_limit, outValue, outValueLen, pageIdx, pageCount); - case 3: /* contracts_call_V2 - storage_deposit_limit */; - return _toStringOptionCompactu128_V2( - &m->basic.contracts_call_V2.storage_deposit_limit, - outValue, outValueLen, - pageIdx, pageCount); - case 4: /* contracts_call_V2 - data */; + case 3: /* contracts_call_V2 - data */; return _toStringBytes( &m->basic.contracts_call_V2.data, outValue, outValueLen, diff --git a/app/src/substrate_methods_V2.h b/app/src/substrate_methods_V2.h index 64bfa10..be476aa 100644 --- a/app/src/substrate_methods_V2.h +++ b/app/src/substrate_methods_V2.h @@ -429,7 +429,6 @@ typedef struct { pd_LookupasStaticLookupSource_V2_t dest; pd_CompactBalance_t value; pd_Compactu64_t gas_limit; - pd_OptionCompactu128_V2_t storage_deposit_limit; pd_Bytes_t data; } pd_contracts_call_V2_t;