Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
#define macro MAIN() = takes(0) returns(0) { | |
returndatasize calldataload // [x] | |
not // [~x] | |
0x1 and // [even] | |
returndatasize mstore // [] | |
msize returndatasize return // [] | |
} |
This file contains hidden or 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
#define macro MAIN() = takes(0) returns(0) { | |
number returndatasize mstore | |
0x20 returndatasize return | |
} |
This file contains hidden or 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
#define constant CNSTR_CODE = 0x601834818180333cf3 | |
#define constant CNSTR_CODE_SIZE = 0x9 | |
#define constant CNSTR_CODE_OFFSET = 0x17 // 0x20 - [CNSTR_CODE_SIZE] | |
#define macro MAIN() = takes(0) returns(0) { | |
[CNSTR_CODE_SIZE] [CNSTR_CODE_OFFSET] // [cc_offset, cc_size] | |
returndatasize // [0, cc_offset, cc_size] | |
[CNSTR_CODE] dup2 mstore // [0, cc_offset, cc_size] | |
dup3 dup3 dup3 create // [addr1, 0, cc_offset, cc_size] | |
pop create // [addr2] |
NewerOlder