changes to make everything work
This commit is contained in:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user