mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-24 12:08:22 +00:00
gulp
This commit is contained in:
parent
688faeca73
commit
0dd6cc41fa
13
dist/ethereum.js
vendored
13
dist/ethereum.js
vendored
@ -52,6 +52,8 @@ var inputTypes = types.inputTypes();
|
|||||||
/// @returns bytes representation of input params
|
/// @returns bytes representation of input params
|
||||||
var formatInput = function (inputs, params) {
|
var formatInput = function (inputs, params) {
|
||||||
var bytes = "";
|
var bytes = "";
|
||||||
|
var toAppendConstant = "";
|
||||||
|
var toAppendArrayContent = "";
|
||||||
|
|
||||||
/// first we iterate in search for dynamic
|
/// first we iterate in search for dynamic
|
||||||
inputs.forEach(function (input, index) {
|
inputs.forEach(function (input, index) {
|
||||||
@ -68,17 +70,17 @@ var formatInput = function (inputs, params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var formatter = inputTypes[j - 1].format;
|
var formatter = inputTypes[j - 1].format;
|
||||||
var toAppend = "";
|
|
||||||
|
|
||||||
if (arrayType(inputs[i].type))
|
if (arrayType(inputs[i].type))
|
||||||
toAppend = params[i].reduce(function (acc, curr) {
|
toAppendArrayContent += params[i].reduce(function (acc, curr) {
|
||||||
return acc + formatter(curr);
|
return acc + formatter(curr);
|
||||||
}, "");
|
}, "");
|
||||||
else
|
else
|
||||||
toAppend = formatter(params[i]);
|
toAppendConstant += formatter(params[i]);
|
||||||
|
|
||||||
bytes += toAppend;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bytes += toAppendConstant + toAppendArrayContent;
|
||||||
|
|
||||||
return bytes;
|
return bytes;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -196,7 +198,6 @@ module.exports = {
|
|||||||
formatOutput: formatOutput
|
formatOutput: formatOutput
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
},{"./const":2,"./formatters":8,"./types":15,"./utils":16}],2:[function(require,module,exports){
|
},{"./const":2,"./formatters":8,"./types":15,"./utils":16}],2:[function(require,module,exports){
|
||||||
/*
|
/*
|
||||||
This file is part of ethereum.js.
|
This file is part of ethereum.js.
|
||||||
|
4
dist/ethereum.js.map
vendored
4
dist/ethereum.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethereum.min.js
vendored
2
dist/ethereum.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user