Skip to content

Instantly share code, notes, and snippets.

@hayeah
Created September 3, 2017 10:29
Show Gist options
  • Save hayeah/fe8df911649e07099974723b21afcb09 to your computer and use it in GitHub Desktop.
Save hayeah/fe8df911649e07099974723b21afcb09 to your computer and use it in GitHub Desktop.
= calldata[0:4]
if methodSelector == "0xee919d50":
goto tag_2 // goto setA
else:
// No matching method. Fail.
revert
@returnTo = tag_3
tag_2: // setA(uint256 _a)
@arg1 = calldata[4:36]
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