Skip to content

Commit

Permalink
add test for address encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ewingrj committed Sep 16, 2017
1 parent 53b3f78 commit ee76dab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/eth.abi.encodeParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ var tests = [{
},{
params: [['uint8[]','bytes32'], [['34','434'], '0x324567fff']],
result: '0x0000000000000000000000000000000000000000000000000000000000000040324567fff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000001b2'
},{
params: [['address','address','address', 'address'], ['0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1','','0x0', null]],
result: '0x00000000000000000000000090f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}];

describe('encodeParameters', function () {
Expand Down

0 comments on commit ee76dab

Please sign in to comment.