Commit eae84023 authored by yann300's avatar yann300

better decode input param (add type and name)

parent bfe3c933
......@@ -249,7 +249,12 @@ class TxListener {
for (var i = 0; i < abi.inputs.length; i++) {
inputTypes.push(abi.inputs[i].type)
}
return ethJSABI.rawDecode(inputTypes, data)
var decoded = ethJSABI.rawDecode(inputTypes, data)
var ret = {}
for (var k in abi.inputs) {
ret[abi.inputs[k].type + ' ' + abi.inputs[k].name] = decoded[k]
}
return ret
}
}
......
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