Guest User

Untitled

a guest
Jan 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. it("Encoding the function call", async () => {
  2. let abiSignature = web3Abi.encodeFunctionCall(
  3. {
  4. "constant": false,
  5. "inputs": [
  6. {
  7. "name": "_aString",
  8. "type": "string"
  9. },
  10. {
  11. "name": "_aNumber",
  12. "type": "uint256"
  13. }
  14. ],
  15. "name": "aFunction",
  16. "outputs": [],
  17. "payable": false,
  18. "stateMutability": "nonpayable",
  19. "type": "function"
  20. }, ['a string', '1234']
  21. );
  22. });
Add Comment
Please, Sign In to add comment