Skip to content

Instantly share code, notes, and snippets.

@CJ42
Last active January 16, 2023 18:28
Show Gist options
  • Select an option

  • Save CJ42/ba12cd755b799f4199e4e1e27203d021 to your computer and use it in GitHub Desktop.

Select an option

Save CJ42/ba12cd755b799f4199e4e1e27203d021 to your computer and use it in GitHub Desktop.
PUSH1 40
MSTORE
CALLVALUE
DUP1
ISZERO
PUSH1 0f
JUMPI
; ...
JUMPDEST
POP
PUSH1 04
CALLDATASIZE
LT
PUSH1 28
JUMPI
PUSH1 00
CALLDATALOAD
PUSH1 e0
SHR
DUP1
PUSH4 f446c1d0 ; function selector = bytes4(keccak256('A()'))
EQ
PUSH1 2d
JUMPI
; ...
JUMPDEST
PUSH1 33
PUSH1 47
JUMP
; ...
JUMPDEST
PUSH32 cafecafecafecafecafecafecafecafecafecafecafecafecafecafecafecafe ; the value of the constant is inlined
PUSH1 00
SHL
DUP2
JUMP
; ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment