Skip to content

Instantly share code, notes, and snippets.

@hayeah

hayeah/block14. Secret

Created September 3, 2017 10:29
Show Gist options
  • Save hayeah/fd0f9eb41728e4107ed9a957847e148a to your computer and use it in GitHub Desktop.
Save hayeah/fd0f9eb41728e4107ed9a957847e148a to your computer and use it in GitHub Desktop.
// Saves the position to return to after method call.
@returnTo = tag_3
tag_2: // setA
// Loads the arguments from call data onto the stack.
@arg1 = calldata[4:4+32]
tag_4: // a = _a
sstore(0x0, @arg1)
tag_5 // return
jump(@returnTo)
tag_3:
stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment