diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-20 22:06:05 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-20 22:06:05 +0800 |
commit | 380c1522ac450fdafe9bfb8e2d2f60fdfe918745 (patch) | |
tree | 8ec905b875a77a86f279f174a32e413ebe22a25a /test | |
parent | 6a58db66f7f42a49667bcc751418256441752279 (diff) | |
download | go-tangerine-380c1522ac450fdafe9bfb8e2d2f60fdfe918745.tar go-tangerine-380c1522ac450fdafe9bfb8e2d2f60fdfe918745.tar.gz go-tangerine-380c1522ac450fdafe9bfb8e2d2f60fdfe918745.tar.bz2 go-tangerine-380c1522ac450fdafe9bfb8e2d2f60fdfe918745.tar.lz go-tangerine-380c1522ac450fdafe9bfb8e2d2f60fdfe918745.tar.xz go-tangerine-380c1522ac450fdafe9bfb8e2d2f60fdfe918745.tar.zst go-tangerine-380c1522ac450fdafe9bfb8e2d2f60fdfe918745.zip |
solidity methods "overloading"
Diffstat (limited to 'test')
-rw-r--r-- | test/abi.parsers.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/abi.parsers.js b/test/abi.parsers.js index e9613817b..19fa1d4cf 100644 --- a/test/abi.parsers.js +++ b/test/abi.parsers.js @@ -48,7 +48,6 @@ describe('abi', function() { assert.equal(parser.test('0.1'), "0000000000000000000000000000000000000000000000000000000000000000"); assert.equal(parser.test('3.9'), "0000000000000000000000000000000000000000000000000000000000000003"); - }); it('should parse input uint128', function() { @@ -321,7 +320,7 @@ describe('abi', function() { // given var d = clone(description); - d[0].name = 'helloworld'; + d[0].name = 'helloworld(int)'; d[0].inputs = [ { type: "int" } ]; @@ -331,6 +330,7 @@ describe('abi', function() { // then assert.equal(parser.helloworld(1), "0000000000000000000000000000000000000000000000000000000000000001"); + assert.equal(parser.helloworld['int'](1), "0000000000000000000000000000000000000000000000000000000000000001"); }); @@ -755,7 +755,7 @@ describe('abi', function() { // given var d = clone(description); - d[0].name = 'helloworld'; + d[0].name = 'helloworld(int)'; d[0].outputs = [ { type: "int" } ]; @@ -765,6 +765,7 @@ describe('abi', function() { // then assert.equal(parser.helloworld("0x0000000000000000000000000000000000000000000000000000000000000001")[0], 1); + assert.equal(parser.helloworld['int']("0x0000000000000000000000000000000000000000000000000000000000000001")[0], 1); }); |