changes to make everything work

pull/272/merge
Marek Kotewicz 10 years ago
parent 05290d5547
commit 3451f26086
  1. 4
      dist/ethereum.js
  2. 4
      dist/ethereum.js.map
  3. 2
      dist/ethereum.min.js
  4. 6
      lib/abi.js
  5. 7
      lib/main.js

4
dist/ethereum.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -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++) {

@ -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;
};

Loading…
Cancel
Save