Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from hugo-dc/create-return-test
Test RETURN for big offset
- Loading branch information
Showing
2 changed files
with
273 additions
and
0 deletions.
There are no files selected for viewing
238 changes: 238 additions & 0 deletions
238
GeneralStateTests/stCreateTest/CREATE_ContractRETURNBigOffset.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,238 @@ | ||
{ | ||
"CREATE_ContractRETURNBigOffset" : { | ||
"_info" : { | ||
"comment" : "", | ||
"filledwith" : "cpp-1.3.0+commit.a56028e2.Darwin.appleclang", | ||
"lllcversion" : "Version: 0.4.20-develop.2018.1.2+commit.efc198d5.Darwin.appleclang", | ||
"source" : "src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml", | ||
"sourceHash" : "4ac1e71b353096bf7012d1454133d2da666b6b2c0bbeeddfba589ef89b004a0a" | ||
}, | ||
"env" : { | ||
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", | ||
"currentDifficulty" : "0x020000", | ||
"currentGasLimit" : "0x05500000", | ||
"currentNumber" : "0x01", | ||
"currentTimestamp" : "0x03e8", | ||
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" | ||
}, | ||
"post" : { | ||
"Byzantium" : [ | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 0, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 1, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 2, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 3, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
} | ||
], | ||
"EIP150" : [ | ||
{ | ||
"hash" : "0xfc9d23a307622b842c91b702280285ff5a81d7268f30d91dca4c9ad3a26a6817", | ||
"indexes" : { | ||
"data" : 0, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0x5a148cc8d09f702e8f340c17544f0469a51dea69c6686fde0cb226ac7c9b4a17", | ||
"indexes" : { | ||
"data" : 1, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xf66250dab43dbdb4a1f1dd8f88ba3187119b864b03b51d47af63b06da311b693", | ||
"indexes" : { | ||
"data" : 2, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 3, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
} | ||
], | ||
"EIP158" : [ | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 0, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 1, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 2, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 3, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
} | ||
], | ||
"Frontier" : [ | ||
{ | ||
"hash" : "0xc8528447ff522cee217cc485c3eddd224c6cd67941110a06ed6ab414aebb65bd", | ||
"indexes" : { | ||
"data" : 0, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xa43b1e1e3293bcd8c8b77635612dd402ff992aad16964294e586cfdfbb769ee9", | ||
"indexes" : { | ||
"data" : 1, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0x0240d31611cdd1f3a056b6be43a5cb5f404dc9f874d823756a6c1305cba3c9af", | ||
"indexes" : { | ||
"data" : 2, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0x2b5a538db83b35434a291d508b24961a5758ee8df3ad64c95d5620e097a0ece6", | ||
"indexes" : { | ||
"data" : 3, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
} | ||
], | ||
"Homestead" : [ | ||
{ | ||
"hash" : "0xfc9d23a307622b842c91b702280285ff5a81d7268f30d91dca4c9ad3a26a6817", | ||
"indexes" : { | ||
"data" : 0, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0x5a148cc8d09f702e8f340c17544f0469a51dea69c6686fde0cb226ac7c9b4a17", | ||
"indexes" : { | ||
"data" : 1, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xf66250dab43dbdb4a1f1dd8f88ba3187119b864b03b51d47af63b06da311b693", | ||
"indexes" : { | ||
"data" : 2, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
{ | ||
"hash" : "0xced4c058d2625d77bb5a0ae539c113ed83ed944e94df03b23bb0f9711a46bcd3", | ||
"indexes" : { | ||
"data" : 3, | ||
"gas" : 0, | ||
"value" : 0 | ||
}, | ||
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
} | ||
] | ||
}, | ||
"pre" : { | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { | ||
"balance" : "0x174876e800", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
} | ||
}, | ||
"transaction" : { | ||
"data" : [ | ||
"0x6201000062074ac2f3", | ||
"0x62051eb862074ac2f3", | ||
"0x62051eb962074ac2f3", | ||
"0x620d15bc62074ac2f3" | ||
], | ||
"gasLimit" : [ | ||
"0x5000001" | ||
], | ||
"gasPrice" : "0x02", | ||
"nonce" : "0x00", | ||
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", | ||
"to" : "", | ||
"value" : [ | ||
"0x00" | ||
] | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Use return with big offset, causes BN error in ethereumjs-vm | ||
--- | ||
CREATE_ContractRETURNBigOffset: | ||
env: | ||
currentCoinbase: 2adc25665018aa1fe0e6bc666dac8fc2697ff9ba | ||
currentDifficulty: '0x020000' | ||
currentGasLimit: '89128960' | ||
currentNumber: '1' | ||
currentTimestamp: '1000' | ||
previousHash: 5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6 | ||
pre: | ||
a94f5374fce5edbc8e2a8697c15331677e6ebf0b: | ||
balance: '100000000000' | ||
code: '' | ||
nonce: '' | ||
storage: {} | ||
transaction: | ||
data: | ||
#- { (RETURN 0x074ac2 0x010000) } | ||
#- { (RETURN 0x074ac2 0x051eb8) } | ||
#- { (RETURN 0x074ac2 0x051eb9) } | ||
#- { (RETURN 0x074ac2 0x0d15bc) } | ||
- '0x6201000062074ac2f3' | ||
- '0x62051eb862074ac2f3' | ||
- '0x62051eb962074ac2f3' | ||
- '0x620d15bc62074ac2f3' | ||
gasLimit: | ||
- '0x5000001' | ||
gasPrice: '0x02' | ||
nonce: '0x00' | ||
secretKey: 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8 | ||
to: '' | ||
value: | ||
- '0' | ||
|