Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it("Encoding the function call", async () => {
- let abiSignature = web3Abi.encodeFunctionCall(
- {
- "constant": false,
- "inputs": [
- {
- "name": "_aString",
- "type": "string"
- },
- {
- "name": "_aNumber",
- "type": "uint256"
- }
- ],
- "name": "aFunction",
- "outputs": [],
- "payable": false,
- "stateMutability": "nonpayable",
- "type": "function"
- }, ['a string', '1234']
- );
- });
Add Comment
Please, Sign In to add comment