diff options
author | Dimitry <dimitry@ethdev.com> | 2017-03-22 23:31:24 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2017-03-22 23:31:24 +0800 |
commit | 7c60c32a115e088acc2c79197e66b84c2cfda790 (patch) | |
tree | c4882f68387a175beade0fc6d0d27fcf77ea2c42 /GeneralStateTests | |
parent | b2c47a6c5bf786ede388b92c9e2c4be699bc4eb9 (diff) | |
download | dexon-tests-7c60c32a115e088acc2c79197e66b84c2cfda790.tar.gz dexon-tests-7c60c32a115e088acc2c79197e66b84c2cfda790.tar.zst dexon-tests-7c60c32a115e088acc2c79197e66b84c2cfda790.zip |
revert opcode tests
Diffstat (limited to 'GeneralStateTests')
-rw-r--r-- | GeneralStateTests/stRevertTest/RevertOpcode.json | 138 | ||||
-rw-r--r-- | GeneralStateTests/stRevertTest/RevertOpcodeCalls.json | 421 | ||||
-rw-r--r-- | GeneralStateTests/stRevertTest/RevertOpcodeCreate.json | 64 | ||||
-rw-r--r-- | GeneralStateTests/stRevertTest/RevertOpcodeDirectCall.json | 150 | ||||
-rw-r--r-- | GeneralStateTests/stRevertTest/RevertOpcodeInInit.json | 210 |
5 files changed, 967 insertions, 16 deletions
diff --git a/GeneralStateTests/stRevertTest/RevertOpcode.json b/GeneralStateTests/stRevertTest/RevertOpcode.json index 658a477b2..80977eb7a 100644 --- a/GeneralStateTests/stRevertTest/RevertOpcode.json +++ b/GeneralStateTests/stRevertTest/RevertOpcode.json @@ -11,59 +11,179 @@ "post" : { "EIP150" : [ { - "hash" : "f40a0c0e5db25166d81ceb0f04d6cb7a47c93a92ab289e96a3b62fcb0fec0660", + "hash" : "299e173f3b37ebb90f4390583926658bb2a000d031b2b1ed2a248e5a8a47f4d7", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 } + }, + { + "hash" : "299e173f3b37ebb90f4390583926658bb2a000d031b2b1ed2a248e5a8a47f4d7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } } ], "EIP158" : [ { - "hash" : "f40a0c0e5db25166d81ceb0f04d6cb7a47c93a92ab289e96a3b62fcb0fec0660", + "hash" : "299e173f3b37ebb90f4390583926658bb2a000d031b2b1ed2a248e5a8a47f4d7", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 } + }, + { + "hash" : "299e173f3b37ebb90f4390583926658bb2a000d031b2b1ed2a248e5a8a47f4d7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } } ], "Frontier" : [ { - "hash" : "f40a0c0e5db25166d81ceb0f04d6cb7a47c93a92ab289e96a3b62fcb0fec0660", + "hash" : "299e173f3b37ebb90f4390583926658bb2a000d031b2b1ed2a248e5a8a47f4d7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "299e173f3b37ebb90f4390583926658bb2a000d031b2b1ed2a248e5a8a47f4d7", "indexes" : { "data" : 0, "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, "value" : 0 } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } } ], "Homestead" : [ { - "hash" : "f40a0c0e5db25166d81ceb0f04d6cb7a47c93a92ab289e96a3b62fcb0fec0660", + "hash" : "299e173f3b37ebb90f4390583926658bb2a000d031b2b1ed2a248e5a8a47f4d7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "299e173f3b37ebb90f4390583926658bb2a000d031b2b1ed2a248e5a8a47f4d7", "indexes" : { "data" : 0, "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, "value" : 0 } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } } ], "Metropolis" : [ { - "hash" : "8a487ba443f11366495e2f5656c3ac36a38300e29202da19dfbef5a9e9537b67", + "hash" : "94cc837a7eecd810063cc425e84e9467e74134c9a516d4df91f71f201fe77676", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 } + }, + { + "hash" : "94cc837a7eecd810063cc425e84e9467e74134c9a516d4df91f71f201fe77676", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "f0b23a60fca645c6d2726c2a6ff621b379b77902e5a99ebc71035b13a1da70fb", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } } ] }, "pre" : { "a000000000000000000000000000000000000000" : { - "balance" : "0x01", - "code" : "0x600160005560016000fd", + "balance" : "0x00", + "code" : "0x600160005560016000fd6011600155", "nonce" : "0x00", "storage" : { } @@ -81,13 +201,15 @@ "" ], "gasLimit" : [ - "800000" + "800000", + "30000" ], "gasPrice" : "0x01", "nonce" : "0x00", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "a000000000000000000000000000000000000000", "value" : [ + "0", "10" ] } diff --git a/GeneralStateTests/stRevertTest/RevertOpcodeCalls.json b/GeneralStateTests/stRevertTest/RevertOpcodeCalls.json new file mode 100644 index 000000000..b77b097bf --- /dev/null +++ b/GeneralStateTests/stRevertTest/RevertOpcodeCalls.json @@ -0,0 +1,421 @@ +{ + "RevertOpcodeCalls" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "EIP150" : [ + { + "hash" : "710afb013436152320710b84da2b4546bf0aef1d68f634c478d4981d4105f255", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "c879f36afaeace32cc8b9462dad38f688ec506a89884b21b6e60d8249b3ab136", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 1, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "7b5aea4a6d7e6ac3b1a96651dc76c4171af4cb599bb4e8c242e18c83dd7533c8", + "indexes" : { + "data" : 2, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 2, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "d5a14b2554f5d08626ce5cdfac36217426d292b62ff994e25fe89cf8d3c93743", + "indexes" : { + "data" : 3, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 3, + "gas" : 1, + "value" : 0 + } + } + ], + "EIP158" : [ + { + "hash" : "710afb013436152320710b84da2b4546bf0aef1d68f634c478d4981d4105f255", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "c879f36afaeace32cc8b9462dad38f688ec506a89884b21b6e60d8249b3ab136", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 1, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "7b5aea4a6d7e6ac3b1a96651dc76c4171af4cb599bb4e8c242e18c83dd7533c8", + "indexes" : { + "data" : 2, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 2, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "d5a14b2554f5d08626ce5cdfac36217426d292b62ff994e25fe89cf8d3c93743", + "indexes" : { + "data" : 3, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 3, + "gas" : 1, + "value" : 0 + } + } + ], + "Frontier" : [ + { + "hash" : "917fea5fed77119230c4120bc4df0d7f1e038160c5c733cd1e779038b67e122a", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "b30ce1d2c038b2632e9bf010a78c665339513f1d2e762c6b9bb12a7494831ac2", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 1, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "9eaa832bba7dc43eb5e2b097c9a33430d6957285873991c69847ced845ba4f26", + "indexes" : { + "data" : 2, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 2, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "249083970cef69bb1a73955e5f3faff87414f280b3010de5409c70aa2f35d8dc", + "indexes" : { + "data" : 3, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 3, + "gas" : 1, + "value" : 0 + } + } + ], + "Homestead" : [ + { + "hash" : "917fea5fed77119230c4120bc4df0d7f1e038160c5c733cd1e779038b67e122a", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "b30ce1d2c038b2632e9bf010a78c665339513f1d2e762c6b9bb12a7494831ac2", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 1, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "9a43f317297c23f76ed28075273dd8667a5fd0f0bb5d45dca4c86c311706d26a", + "indexes" : { + "data" : 2, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 2, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "249083970cef69bb1a73955e5f3faff87414f280b3010de5409c70aa2f35d8dc", + "indexes" : { + "data" : 3, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 3, + "gas" : 1, + "value" : 0 + } + } + ], + "Metropolis" : [ + { + "hash" : "0d513c13e81b253b71753bcc7f425d1d75dad68a8df04e99c3809e1055e4022b", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "75fb8edb9ba85d2e5f99fe25086db8b50f342af1a4f4088b64dbee5561a9c6d0", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 1, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "00503cf454b9b07f5bd6669c6a921ad6b47bd721df217c38aa4ed6fa67a02d42", + "indexes" : { + "data" : 2, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 2, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "303c9bd2c6a371aca2a92661e5b529cf14dffa3bb6ba3646aa20b3c9125d3ff7", + "indexes" : { + "data" : 3, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "cb25ac163bf287f7a013e9f6cb4647f20430df838f30efd03da02871028215a1", + "indexes" : { + "data" : 3, + "gas" : 1, + "value" : 0 + } + } + ] + }, + "pre" : { + "094f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x600060006000600060006000356203f7a0f1600a55", + "nonce" : "0x00", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "b0005374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x6000600060006000600073c94f5374fce5edbc8e2a8697c15331677e6ebf0b61c350f1600055600e600255", + "nonce" : "0x00", + "storage" : { + } + }, + "b1005374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x6000600060006000600073c94f5374fce5edbc8e2a8697c15331677e6ebf0b61c350f2600055600e600255", + "nonce" : "0x00", + "storage" : { + } + }, + "b2005374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x600060006000600073c94f5374fce5edbc8e2a8697c15331677e6ebf0b61c350f4600055600e600255", + "nonce" : "0x00", + "storage" : { + } + }, + "b3005374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x6000600060006000600073b3305374fce5edbc8e2a8697c15331677e6ebf0b620186a0f1600055600e600255", + "nonce" : "0x00", + "storage" : { + } + }, + "b3305374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x6000600060006000600073c94f5374fce5edbc8e2a8697c15331677e6ebf0b61c350f1600455600e600555", + "nonce" : "0x00", + "storage" : { + } + }, + "c94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x600c60015560016000fd", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x000000000000000000000000b0005374fce5edbc8e2a8697c15331677e6ebf0b", + "0x000000000000000000000000b1005374fce5edbc8e2a8697c15331677e6ebf0b", + "0x000000000000000000000000b2005374fce5edbc8e2a8697c15331677e6ebf0b", + "0x000000000000000000000000b3005374fce5edbc8e2a8697c15331677e6ebf0b" + ], + "gasLimit" : [ + "460000", + "100000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "094f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0" + ] + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stRevertTest/RevertOpcodeCreate.json b/GeneralStateTests/stRevertTest/RevertOpcodeCreate.json index d7c3d7d21..36da93572 100644 --- a/GeneralStateTests/stRevertTest/RevertOpcodeCreate.json +++ b/GeneralStateTests/stRevertTest/RevertOpcodeCreate.json @@ -11,52 +11,92 @@ "post" : { "EIP150" : [ { - "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "hash" : "2123e2e637ea369203c1e524079cda098388fb6cd7a5d51436c9aeb522efa47e", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 } + }, + { + "hash" : "b72445d263cd1f0e84ee4087b5233aa0aa7c43fd1383b9d469fca46248d88431", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } } ], "EIP158" : [ { - "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "hash" : "2123e2e637ea369203c1e524079cda098388fb6cd7a5d51436c9aeb522efa47e", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 } + }, + { + "hash" : "b72445d263cd1f0e84ee4087b5233aa0aa7c43fd1383b9d469fca46248d88431", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } } ], "Frontier" : [ { - "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "hash" : "2123e2e637ea369203c1e524079cda098388fb6cd7a5d51436c9aeb522efa47e", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 } + }, + { + "hash" : "b72445d263cd1f0e84ee4087b5233aa0aa7c43fd1383b9d469fca46248d88431", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } } ], "Homestead" : [ { - "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "hash" : "2123e2e637ea369203c1e524079cda098388fb6cd7a5d51436c9aeb522efa47e", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 } + }, + { + "hash" : "b72445d263cd1f0e84ee4087b5233aa0aa7c43fd1383b9d469fca46248d88431", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } } ], "Metropolis" : [ { - "hash" : "598c6a778bd614e6a64d7880b4c3bf81798912c0d5a9bffad0ed253ca41e72e2", + "hash" : "eeac7cc67af32c9fc40749602cda167c54269830d2cb71fd3586e1ed4f458baa", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 } + }, + { + "hash" : "b72445d263cd1f0e84ee4087b5233aa0aa7c43fd1383b9d469fca46248d88431", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } } ] }, @@ -67,19 +107,27 @@ "nonce" : "0x00", "storage" : { } + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x6e600160005560016000fd6011600155600052600f60116001f0600155600c600055", + "nonce" : "0x00", + "storage" : { + } } }, "transaction" : { "data" : [ - "0x600160005560016000fd" + "0x600160005560016000fe6011600155" ], "gasLimit" : [ - "160000" + "460000", + "70000" ], "gasPrice" : "0x01", "nonce" : "0x00", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", - "to" : "", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : [ "0" ] diff --git a/GeneralStateTests/stRevertTest/RevertOpcodeDirectCall.json b/GeneralStateTests/stRevertTest/RevertOpcodeDirectCall.json new file mode 100644 index 000000000..6238fc817 --- /dev/null +++ b/GeneralStateTests/stRevertTest/RevertOpcodeDirectCall.json @@ -0,0 +1,150 @@ +{ + "RevertOpcodeDirectCall" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "EIP150" : [ + { + "hash" : "4b5855c46e03a2b0f21f4e6e80b6a24551be97416f9eb725e191edb78fecc8b8", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "c19cdf9f2ac7505d80e40a2c1fa56dec30b3e10bad3ebc3da35415b678f07828", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + } + ], + "EIP158" : [ + { + "hash" : "4b5855c46e03a2b0f21f4e6e80b6a24551be97416f9eb725e191edb78fecc8b8", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "c19cdf9f2ac7505d80e40a2c1fa56dec30b3e10bad3ebc3da35415b678f07828", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + } + ], + "Frontier" : [ + { + "hash" : "0c45c39cc33809ab7c3f91ebbe39b933e3968b9dbb885b3e60c6b743e536061b", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "c19cdf9f2ac7505d80e40a2c1fa56dec30b3e10bad3ebc3da35415b678f07828", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + } + ], + "Homestead" : [ + { + "hash" : "0c45c39cc33809ab7c3f91ebbe39b933e3968b9dbb885b3e60c6b743e536061b", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "c19cdf9f2ac7505d80e40a2c1fa56dec30b3e10bad3ebc3da35415b678f07828", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + } + ], + "Metropolis" : [ + { + "hash" : "483dd770e09824d658a70678c7de5130646536128761570eb58bff8bd3edbeef", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "c19cdf9f2ac7505d80e40a2c1fa56dec30b3e10bad3ebc3da35415b678f07828", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + } + ] + }, + "pre" : { + "094f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x6000600060006000600060003561ea60f1600a55", + "nonce" : "0x00", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x6000600060006000600073c94f5374fce5edbc8e2a8697c15331677e6ebf0b61c350f1600055600e600255", + "nonce" : "0x00", + "storage" : { + } + }, + "c94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x01", + "code" : "0x600c60015560016000fd", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x000000000000000000000000b94f5374fce5edbc8e2a8697c15331677e6ebf0b" + ], + "gasLimit" : [ + "460000", + "70000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0" + ] + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stRevertTest/RevertOpcodeInInit.json b/GeneralStateTests/stRevertTest/RevertOpcodeInInit.json new file mode 100644 index 000000000..1dd874962 --- /dev/null +++ b/GeneralStateTests/stRevertTest/RevertOpcodeInInit.json @@ -0,0 +1,210 @@ +{ + "RevertOpcodeInInit" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "EIP150" : [ + { + "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "17ca3d673553cbfcf5de4a99ea08088763bbf64aa67ae17a485f585bcc01d3f2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "17ca3d673553cbfcf5de4a99ea08088763bbf64aa67ae17a485f585bcc01d3f2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } + } + ], + "EIP158" : [ + { + "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "17ca3d673553cbfcf5de4a99ea08088763bbf64aa67ae17a485f585bcc01d3f2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "17ca3d673553cbfcf5de4a99ea08088763bbf64aa67ae17a485f585bcc01d3f2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } + } + ], + "Frontier" : [ + { + "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "191cd75344d7c8fac8c7356ea544a74818271d12aabe0f5a830c92ba3c2383c2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "191cd75344d7c8fac8c7356ea544a74818271d12aabe0f5a830c92ba3c2383c2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } + } + ], + "Homestead" : [ + { + "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "7969d9a42e6ee6022e00fd68b4e831dbbefb73c0bfece34b5eb59e4d037ece23", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "17ca3d673553cbfcf5de4a99ea08088763bbf64aa67ae17a485f585bcc01d3f2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "17ca3d673553cbfcf5de4a99ea08088763bbf64aa67ae17a485f585bcc01d3f2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } + } + ], + "Metropolis" : [ + { + "hash" : "79be816b8d710425c26c8c1ee39110a77775145d625ba505cdaa08b02cc85aa9", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + }, + { + "hash" : "79be816b8d710425c26c8c1ee39110a77775145d625ba505cdaa08b02cc85aa9", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 1 + } + }, + { + "hash" : "17ca3d673553cbfcf5de4a99ea08088763bbf64aa67ae17a485f585bcc01d3f2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 0 + } + }, + { + "hash" : "17ca3d673553cbfcf5de4a99ea08088763bbf64aa67ae17a485f585bcc01d3f2", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : 1 + } + } + ] + }, + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x600160005560016000fd6011600155" + ], + "gasLimit" : [ + "160000", + "40000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "", + "value" : [ + "0", + "10" + ] + } + } +}
\ No newline at end of file |