Skip to content

Instantly share code, notes, and snippets.

@hayeah
Created September 3, 2017 10:29
Show Gist options
  • Save hayeah/a24299d6543c6490ab46a4037250f890 to your computer and use it in GitHub Desktop.
Save hayeah/a24299d6543c6490ab46a4037250f890 to your computer and use it in GitHub Desktop.
: assembly {
mstore(0x40, 0x60)
and(div(calldataload(0x0), 0x100000000000000000000000000000000000000000000000000000000), 0xffffffff)
0xee919d50
dup2
eq
tag_2
jumpi
tag_1:
0x0
dup1
revert
tag_2:
tag_3
calldataload(0x4)
jump(tag_4)
tag_3:
stop
tag_4:
/* "call.sol":95:96 a */
0x0
/* "call.sol":95:101 a = _a */
dup2
swap1
sstore
tag_5:
pop
jump // out
auxdata: 0xa165627a7a7230582016353b5ec133c89560dea787de20e25e96284d67a632e9df74dd981cc4db7a0a0029
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment