Skip to content

Commit b9b9141

Browse files
committed
Add a test filter for RETURNDATACOPY initially copying zeros
; hex description ;; store some non-zero word into memory [0..31] 30 ADDRESS 6000 PUSH1 [0] 52 MSTORE ;; RETURNDATACOPY should copy the first word into memory [0..31] 6020 PUSH1 [32] 6000 PUSH1 [0] 6000 PUSH1 [0] 0e RETURNDATACOPY ;; load memory[0..31] onto stack 6000 PUSH1 [0] 51 MLOAD ;; store the topmost stack into storage [0] 6000 PUSH1 [0] 55 SSTORE ;; an implicit `STOP` follows.
1 parent ec2e3b3 commit b9b9141

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"returndatacopy_initial" : {
3+
"env" : {
4+
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
5+
"currentDifficulty" : "0x20000",
6+
"currentGasLimit" : "0x0a00000000",
7+
"currentNumber" : "0x01",
8+
"currentTimestamp" : "0x03e8",
9+
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
10+
},
11+
"expect" : [
12+
{ "indexes" : {
13+
"data" : -1,
14+
"gas" : -1,
15+
"value" : -1
16+
},
17+
"network" : ["EIP150", "EIP158", "Frontier", "Homestead"],
18+
"result" : {
19+
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
20+
"storage" : {
21+
"0x00" : "0x01"
22+
}
23+
}
24+
}
25+
},
26+
{ "indexes" : {
27+
"data" : -1,
28+
"gas" : -1,
29+
"value" : -1
30+
},
31+
"network" : ["Metropolis"],
32+
"result" : {
33+
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
34+
"storage" : {
35+
"0x00" : "0x00"
36+
}
37+
}
38+
}
39+
}
40+
],
41+
"pre" : {
42+
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
43+
"balance" : "0x0de0b6b3a7640000",
44+
"code" : "0x306000526020600060000e600051600055",
45+
"nonce" : "0x00",
46+
"storage" : {
47+
"0x00" : "0x01"
48+
}
49+
},
50+
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
51+
"balance" : "0x6400000000",
52+
"code" : "",
53+
"nonce" : "0x00",
54+
"storage" : {
55+
}
56+
}
57+
},
58+
"transaction" : {
59+
"data" : [
60+
""
61+
],
62+
"gasLimit" : [
63+
"0x0a00000000"
64+
],
65+
"gasPrice" : "0x01",
66+
"nonce" : "0x00",
67+
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
68+
"to" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
69+
"value" : [
70+
"0x00"
71+
]
72+
}
73+
}
74+
}

0 commit comments

Comments
 (0)