Unverified Commit f5efdbc3 authored by yann300's avatar yann300 Committed by GitHub

Update txHelper.js

parent 63b7bab4
......@@ -75,6 +75,15 @@ module.exports = {
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) {
for (var i = 0; i < abi.length; i++) {
......
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