-
-
Save hayeah/714d500b5c6cc3d4a31ee9d5389fe170 to your computer and use it in GitHub Desktop.
This file contains 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
> encode_abi( | |
["string", "string", "string"], | |
["aaaa", "bbbb", "cccc"] | |
).hex() | |
// arg1: look at position 0x60 for string data | |
0000000000000000000000000000000000000000000000000000000000000060 | |
// arg2: look at position 0xa0 for string data | |
00000000000000000000000000000000000000000000000000000000000000a0 | |
// arg3: look at position 0xe0 for string data | |
00000000000000000000000000000000000000000000000000000000000000e0 | |
// 0x60 (96). Data for arg1 | |
0000000000000000000000000000000000000000000000000000000000000004 | |
6161616100000000000000000000000000000000000000000000000000000000 | |
// 0xa0 (160). Data for arg2 | |
0000000000000000000000000000000000000000000000000000000000000004 | |
6262626200000000000000000000000000000000000000000000000000000000 | |
// 0xe0 (224). Data for arg1 | |
0000000000000000000000000000000000000000000000000000000000000004 | |
6363636300000000000000000000000000000000000000000000000000000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment