Created
January 20, 2018 03:54
-
-
Save tina1998612/da767c5fc78f1db5d2ee463048a09ef7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function functionSignatureFromAbi(abiArray) { | |
let functionSignatures = []; | |
for (i in abiArray) { | |
let abi = abiArray[i]; | |
let functionSignature = abi.name + '(' + abi.inputs.map((input) => input.type + ' ' + input.name).join(', ') + ')'; | |
functionSignatures.push(functionSignature); | |
// console.log(functionSignature); | |
} | |
return functionSignatures; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment