Last active
February 23, 2016 11:16
-
-
Save obscuren/9c0bfe08bdb6c25af98f to your computer and use it in GitHub Desktop.
Homestead test code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asm { | |
;; 0x601038036010600039601038036000f36000600060006000731a66ab66f772e3ab3ca44c370830b74c46d2681b610fa05a03f4 | |
;; code starts at the 10th byte | |
PUSH1 16 | |
CODESIZE | |
SUB | |
PUSH1 16 ; code start byte | |
PUSH1 0 ; code mem offset | |
CODECOPY | |
;; return | |
PUSH1 16 | |
CODESIZE | |
SUB | |
PUSH1 0 | |
RETURN | |
;; output | |
PUSH1 0 | |
PUSH1 0 | |
;; input | |
PUSH1 0 | |
PUSH1 0 | |
;; address | |
PUSH20 0x1a66ab66f772e3ab3ca44c370830b74c46d2681b | |
;; gas | |
PUSH2 4000 | |
GAS | |
SUB | |
DELEGATECALL | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nonce": "0x0000000000000042", | |
"difficulty": "0x4000", | |
"alloc": {}, | |
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"coinbase": "0x0000000000000000000000000000000000000000", | |
"timestamp": "0x00", | |
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"extraData": "0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa", | |
"gasLimit": "0x1000000000000" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asm { | |
;; 0x601038036010600039601038036000f3600060003060006000a1 | |
;; code starts at the 10th byte | |
PUSH1 16 | |
CODESIZE | |
SUB | |
PUSH1 16 ; code start byte | |
PUSH1 0 ; code mem offset | |
CODECOPY | |
;; return | |
PUSH1 16 | |
CODESIZE | |
SUB | |
PUSH1 0 | |
RETURN | |
PUSH1 0 | |
PUSH1 0 | |
ADDRESS | |
PUSH1 0 | |
PUSH1 0 | |
LOG1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment