mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 11:38:12 +00:00
step by step encoding
This commit is contained in:
parent
38018446a3
commit
00072f47e2
@ -32,6 +32,14 @@ describe('lib/solidity/coder', function () {
|
||||
'0000000000000000000000000000000000000000000000000000000000000002' + /* a0 */
|
||||
'000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3' +
|
||||
'000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c4' });
|
||||
test({ type: 'address[][2]', value: [['0x407d73d8a49eeb85d32cf465507dd71d507100c1', '0x407d73d8a49eeb85d32cf465507dd71d507100c2'],
|
||||
['0x407d73d8a49eeb85d32cf465507dd71d507100c3', '0x407d73d8a49eeb85d32cf465507dd71d507100c4']],
|
||||
expected: '0000000000000000000000000000000000000000000000000000000000000020' +
|
||||
'0000000000000000000000000000000000000000000000000000000000000002' + /* 20 */
|
||||
'000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1' +
|
||||
'000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c2' +
|
||||
'000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3' +
|
||||
'000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c4' });
|
||||
//test({ type: 'int', value: 1, expected: '0000000000000000000000000000000000000000000000000000000000000001'});
|
||||
//test({ type: 'int', value: 16, expected: '0000000000000000000000000000000000000000000000000000000000000010'});
|
||||
//test({ type: 'int', value: -1, expected: 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'});
|
||||
|
Loading…
x
Reference in New Issue
Block a user