diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2018-01-03 17:45:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 17:45:09 +0800 |
commit | 2bb0c3da3bbb15c528bcef2a7e5ac4bd73f81f87 (patch) | |
tree | d74c9775898994d4aa8f61678661536e84ea321f | |
parent | d393a59e81a4df2431882ed82d8006ade6186295 (diff) | |
parent | 441935737e14ec3341f3b8d8949f5fb8dccaa2bf (diff) | |
download | dexon-tests-2bb0c3da3bbb15c528bcef2a7e5ac4bd73f81f87.tar dexon-tests-2bb0c3da3bbb15c528bcef2a7e5ac4bd73f81f87.tar.gz dexon-tests-2bb0c3da3bbb15c528bcef2a7e5ac4bd73f81f87.tar.bz2 dexon-tests-2bb0c3da3bbb15c528bcef2a7e5ac4bd73f81f87.tar.lz dexon-tests-2bb0c3da3bbb15c528bcef2a7e5ac4bd73f81f87.tar.xz dexon-tests-2bb0c3da3bbb15c528bcef2a7e5ac4bd73f81f87.tar.zst dexon-tests-2bb0c3da3bbb15c528bcef2a7e5ac4bd73f81f87.zip |
Merge pull request #381 from hugo-dc/create-return-test
Test RETURN for big offset
-rw-r--r-- | GeneralStateTests/stCreateTest/CREATE_ContractRETURNBigOffset.json | 238 | ||||
-rw-r--r-- | src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml | 35 |
2 files changed, 273 insertions, 0 deletions
diff --git a/GeneralStateTests/stCreateTest/CREATE_ContractRETURNBigOffset.json b/GeneralStateTests/stCreateTest/CREATE_ContractRETURNBigOffset.json new file mode 100644 index 000000000..82c1affd8 --- /dev/null +++ b/GeneralStateTests/stCreateTest/CREATE_ContractRETURNBigOffset.json @@ -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" + ] + } + } +}
\ No newline at end of file diff --git a/src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml b/src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml new file mode 100644 index 000000000..71c67743e --- /dev/null +++ b/src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml @@ -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' + |