mirror of https://github.com/status-im/web3.js.git
added new "dave" example
This commit is contained in:
parent
860ad2c48b
commit
c59419eeb4
|
@ -82,6 +82,14 @@ describe('lib/solidity/coder', function () {
|
||||||
expected: '0000000000000000000000000000000000000000000000000000000000000009' +
|
expected: '0000000000000000000000000000000000000000000000000000000000000009' +
|
||||||
'6761766f66796f726b0000000000000000000000000000000000000000000000' +
|
'6761766f66796f726b0000000000000000000000000000000000000000000000' +
|
||||||
'0000000000000000000000000000000000000000000000000000000000000005'});
|
'0000000000000000000000000000000000000000000000000000000000000005'});
|
||||||
|
test({ types: ['bytes', 'bool', 'int[]'], values: ['gavofyork', true, [1, 2, 3]],
|
||||||
|
expected: '0000000000000000000000000000000000000000000000000000000000000009' +
|
||||||
|
'0000000000000000000000000000000000000000000000000000000000000003' +
|
||||||
|
'6761766f66796f726b0000000000000000000000000000000000000000000000' +
|
||||||
|
'0000000000000000000000000000000000000000000000000000000000000001' +
|
||||||
|
'0000000000000000000000000000000000000000000000000000000000000001' +
|
||||||
|
'0000000000000000000000000000000000000000000000000000000000000002' +
|
||||||
|
'0000000000000000000000000000000000000000000000000000000000000003'});
|
||||||
test({ types: ['bytes', 'int[]'], values: ['gavofyork', [1, 2, 3]],
|
test({ types: ['bytes', 'int[]'], values: ['gavofyork', [1, 2, 3]],
|
||||||
expected: '0000000000000000000000000000000000000000000000000000000000000009' +
|
expected: '0000000000000000000000000000000000000000000000000000000000000009' +
|
||||||
'0000000000000000000000000000000000000000000000000000000000000003' +
|
'0000000000000000000000000000000000000000000000000000000000000003' +
|
||||||
|
|
Loading…
Reference in New Issue