Last active
November 10, 2022 19:13
-
-
Save sekrystal/8c3a4ac38b1e6f832a6b2c9ac5f9ad5d to your computer and use it in GitHub Desktop.
`init code` contract example
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
label_0000: | |
0000 60 PUSH1 0x80 | |
0002 60 PUSH1 0x40 | |
0004 52 MSTORE | |
0005 34 CALLVALUE | |
0006 80 DUP1 | |
0007 15 ISZERO | |
0008 61 PUSH2 0x0010 | |
000B 57 JUMPI | |
label_000C: | |
000C 60 PUSH1 0x00 | |
000E 80 DUP1 | |
000F FD REVERT | |
label_0010: | |
0010 5B JUMPDEST | |
0011 50 POP | |
0012 6B PUSH12 0x033b2e3c9fd0803ce8000000 | |
001F 60 PUSH1 0x00 | |
0021 80 DUP1 | |
0022 33 CALLER | |
0023 73 PUSH20 0xffffffffffffffffffffffffffffffffffffffff | |
0038 16 AND | |
0039 73 PUSH20 0xffffffffffffffffffffffffffffffffffffffff | |
004E 16 AND | |
004F 81 DUP2 | |
0050 52 MSTORE | |
0051 60 PUSH1 0x20 | |
0053 01 ADD | |
0054 90 SWAP1 | |
0055 81 DUP2 | |
0056 52 MSTORE | |
0057 60 PUSH1 0x20 | |
0059 01 ADD | |
005A 60 PUSH1 0x00 | |
005C 20 SHA3 | |
005D 81 DUP2 | |
005E 90 SWAP1 | |
005F 55 SSTORE | |
0060 50 POP | |
0061 60 PUSH1 0xbd | |
0063 80 DUP1 | |
0064 61 PUSH2 0x006e | |
0067 60 PUSH1 0x00 | |
0069 39 CODECOPY | |
006A 60 PUSH1 0x00 | |
006C F3 RETURN | |
006D FE ASSERT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment