-
-
Save hayeah/0ece4a779a11689f09af0c0c2a1bfd8e 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( | |
["uint256", "uint256[]", "uint256"], | |
[0xaaaa, [0xb1, 0xb2, 0xb3], 0xbbbb] | |
).hex() | |
/************* HEAD (32*3 bytes) *************/ | |
// arg1: 0xaaaa | |
000000000000000000000000000000000000000000000000000000000000aaaa | |
// arg2: look at position 0x60 for array data | |
0000000000000000000000000000000000000000000000000000000000000060 | |
// arg3: 0xbbbb | |
000000000000000000000000000000000000000000000000000000000000bbbb | |
/************* TAIL (128 bytes) *************/ | |
// position 0x60. Data for arg2. | |
0000000000000000000000000000000000000000000000000000000000000003 | |
00000000000000000000000000000000000000000000000000000000000000b1 | |
00000000000000000000000000000000000000000000000000000000000000b2 | |
00000000000000000000000000000000000000000000000000000000000000b3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment