Skip to content

Commit

Permalink
add test - contracts (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj-RR1 committed Oct 15, 2023
1 parent 26eab9d commit 131327a
Show file tree
Hide file tree
Showing 3 changed files with 715 additions and 10 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(_readCompactu128(c, &m->storage_deposit_limit))
CHECK_ERROR(_readOptionCompactu128_V2(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 _toStringCompactu128(
return _toStringOptionCompactu128_V2(
&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_Compactu128_t storage_deposit_limit;
pd_OptionCompactu128_V2_t storage_deposit_limit;
pd_Bytes_t data;
} pd_contracts_call_V2_t;

Expand Down
Loading

0 comments on commit 131327a

Please sign in to comment.