Skip to content

Instantly share code, notes, and snippets.

@hayeah

hayeah/block20. Secret

Created September 3, 2017 10:30
Show Gist options
  • Save hayeah/ecfcdf3545f1e5589222d6dac9b8575c to your computer and use it in GitHub Desktop.
Save hayeah/ecfcdf3545f1e5589222d6dac9b8575c to your computer and use it in GitHub Desktop.
# The first array lists the types of the arguments.
# The second array lists the argument values.
> encode_abi(["uint256", "uint256", "uint256"],[1, 2, 3]).hex()
0000000000000000000000000000000000000000000000000000000000000001
0000000000000000000000000000000000000000000000000000000000000002
0000000000000000000000000000000000000000000000000000000000000003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment