Skip to content

Commit

Permalink
change type to Compact<u128>
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj-RR1 committed Oct 3, 2023
1 parent 8674e00 commit 030868c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/substrate_dispatch_V2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion app/src/substrate_methods_V2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 030868c

Please sign in to comment.