diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-13 03:39:13 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-13 03:39:13 +0800 |
commit | 3451f2608682bd044d7b7165b0d3aa640e8fd81f (patch) | |
tree | b6902919de49e8ab265a48a88a4c6ac466dc55b9 /lib | |
parent | 05290d554749c7b3507da4af11796112c67be718 (diff) | |
download | dexon-3451f2608682bd044d7b7165b0d3aa640e8fd81f.tar.gz dexon-3451f2608682bd044d7b7165b0d3aa640e8fd81f.tar.zst dexon-3451f2608682bd044d7b7165b0d3aa640e8fd81f.zip |
changes to make everything work
Diffstat (limited to 'lib')
-rw-r--r-- | lib/abi.js | 6 | ||||
-rw-r--r-- | lib/main.js | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lib/abi.js b/lib/abi.js index 3082b8232..9102454b0 100644 --- a/lib/abi.js +++ b/lib/abi.js @@ -9,7 +9,7 @@ var findIndex = function (array, callback) { }; var padLeft = function (number, n) { - return (new Array(n - number.toString.length + 1)).join("0") + number; + return (new Array(n * 2 - number.toString().length + 1)).join("0") + number; }; var setupTypes = function () { @@ -55,7 +55,9 @@ var toBytes = function (json, methodName, params) { return; } - bytes = bytes + index + 'x'; + // it needs to be checked in WebThreeStubServer + // something wrong might be with this additional zero + bytes = bytes + index + 'x' + '0'; var method = json[index]; for (var i = 0; i < method.inputs.length; i++) { diff --git a/lib/main.js b/lib/main.js index c3ed22f8b..d7f8531d2 100644 --- a/lib/main.js +++ b/lib/main.js @@ -84,8 +84,11 @@ var ethMethods = function () { { name: 'block', call: blockCall }, { name: 'transaction', call: transactionCall }, { name: 'uncle', call: uncleCall }, - { name: 'compile', call: 'eth_compile' }, - { name: 'lll', call: 'eth_lll' } + { name: 'compilers', call: 'eth_compilers' }, + { name: 'lll', call: 'eth_lll' }, + { name: 'solidity', call: 'eth_solidity' }, + { name: 'contractCreate', call: 'eth_contractCreate' }, + { name: 'contractCall', call: 'eth_contractCall' } ]; return methods; }; |