Skip to content

Instantly share code, notes, and snippets.

@hayeah

hayeah/block26. Secret

Created September 3, 2017 10:30
Show Gist options
  • Save hayeah/9762bdf4b471e87b4dcf95fe5e961944 to your computer and use it in GitHub Desktop.
Save hayeah/9762bdf4b471e87b4dcf95fe5e961944 to your computer and use it in GitHub Desktop.
// encode 48 bytes of string data
ethereum.abi.encode_abi(
["string"],
["a" * (32+16)]
).hex()
'
0000000000000000000000000000000000000000000000000000000000000020
// length 0x30 (48)
0000000000000000000000000000000000000000000000000000000000000030
6161616161616161616161616161616161616161616161616161616161616161
6161616161616161616161616161616100000000000000000000000000000000'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment