Merge pull request #943 from ethereum/yann300-patch-23

Add serializeInputs function helper
pull/7/head
yann300 6 years ago committed by GitHub
commit a7f028cf4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      remix-lib/src/execution/txHelper.js

@ -76,6 +76,15 @@ module.exports = {
return funABI return funABI
}, },
serializeInputs: function (fnAbi) {
var serialized = '('
if (fnAbi.inputs && fnAbi.inputs.length) {
serialized += fnAbi.inputs.map((input) => { return input.type }).join(',')
}
serialized += ')'
return serialized
},
getFunction: function (abi, fnName) { getFunction: function (abi, fnName) {
for (var i = 0; i < abi.length; i++) { for (var i = 0; i < abi.length; i++) {
var fn = abi[i] var fn = abi[i]

Loading…
Cancel
Save