Skip to content

Instantly share code, notes, and snippets.

@hayeah

hayeah/block13. Secret

Created September 3, 2017 10:29
Show Gist options
  • Save hayeah/2b65f315fb031eeeacb5d51eca4407d7 to your computer and use it in GitHub Desktop.
Save hayeah/2b65f315fb031eeeacb5d51eca4407d7 to your computer and use it in GitHub Desktop.
// setA
tag_2:
// Where to goto after method call
tag_3
// Load first argument (the value 0x1).
calldataload(0x4)
// Execute method.
jump(tag_4)
tag_4:
// sstore(0x0, 0x1)
0x0
dup2
swap1
sstore
tag_5:
pop
// end of program, will goto tag_3 and stop
jump
tag_3:
// end of program
stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment