Commit 3451f260 authored by Marek Kotewicz's avatar Marek Kotewicz

changes to make everything work

parent 05290d55
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -9,7 +9,7 @@ var findIndex = function (array, callback) { ...@@ -9,7 +9,7 @@ var findIndex = function (array, callback) {
}; };
var padLeft = function (number, n) { 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 () { var setupTypes = function () {
...@@ -55,7 +55,9 @@ var toBytes = function (json, methodName, params) { ...@@ -55,7 +55,9 @@ var toBytes = function (json, methodName, params) {
return; 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]; var method = json[index];
for (var i = 0; i < method.inputs.length; i++) { for (var i = 0; i < method.inputs.length; i++) {
......
...@@ -84,8 +84,11 @@ var ethMethods = function () { ...@@ -84,8 +84,11 @@ var ethMethods = function () {
{ name: 'block', call: blockCall }, { name: 'block', call: blockCall },
{ name: 'transaction', call: transactionCall }, { name: 'transaction', call: transactionCall },
{ name: 'uncle', call: uncleCall }, { name: 'uncle', call: uncleCall },
{ name: 'compile', call: 'eth_compile' }, { name: 'compilers', call: 'eth_compilers' },
{ name: 'lll', call: 'eth_lll' } { name: 'lll', call: 'eth_lll' },
{ name: 'solidity', call: 'eth_solidity' },
{ name: 'contractCreate', call: 'eth_contractCreate' },
{ name: 'contractCall', call: 'eth_contractCall' }
]; ];
return methods; return methods;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment