aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-21 00:48:08 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-21 00:48:08 +0800
commitca8aa01b3468295f6c6ca8d96742d920da189a11 (patch)
tree6faf131b8605b8e79ec9f89d07d1fbff78625c3f
parent21e037c74fbc5aeba83d18a02f072b94d1a70542 (diff)
downloaddexon-solidity-ca8aa01b3468295f6c6ca8d96742d920da189a11.tar.gz
dexon-solidity-ca8aa01b3468295f6c6ca8d96742d920da189a11.tar.zst
dexon-solidity-ca8aa01b3468295f6c6ca8d96742d920da189a11.zip
Squashed 'libjsqrc/ethereumjs/' changes from 6a58db6..848c54d
848c54d _currentAbi object 380c152 solidity methods "overloading" git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 848c54dc4713d5c29993f1c41d16cd334e18081d
-rw-r--r--abi.parsers.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/abi.parsers.js b/abi.parsers.js
index e9613817..19fa1d4c 100644
--- a/abi.parsers.js
+++ b/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);
});