aboutsummaryrefslogtreecommitdiffstats
path: root/GeneralStateTests
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2018-09-13 22:15:49 +0800
committerGitHub <noreply@github.com>2018-09-13 22:15:49 +0800
commit3864810c499597684e8e92eb31c938a9db359c31 (patch)
tree62f6b6c8add5d68e4ed32218fd52949efedfffd4 /GeneralStateTests
parentf2d644f39d395f66c8d403e09e87735aabc48434 (diff)
parente2d84e1c00289bc259ad631efb6b42390e6a291a (diff)
downloaddexon-tests-3864810c499597684e8e92eb31c938a9db359c31.tar
dexon-tests-3864810c499597684e8e92eb31c938a9db359c31.tar.gz
dexon-tests-3864810c499597684e8e92eb31c938a9db359c31.tar.bz2
dexon-tests-3864810c499597684e8e92eb31c938a9db359c31.tar.lz
dexon-tests-3864810c499597684e8e92eb31c938a9db359c31.tar.xz
dexon-tests-3864810c499597684e8e92eb31c938a9db359c31.tar.zst
dexon-tests-3864810c499597684e8e92eb31c938a9db359c31.zip
Merge pull request #506 from ethereum/create2
REVERT in CREATE2
Diffstat (limited to 'GeneralStateTests')
-rw-r--r--GeneralStateTests/stCreate2/CreateMessageReverted.json73
-rw-r--r--GeneralStateTests/stCreate2/CreateMessageRevertedOOGInInit.json73
-rw-r--r--GeneralStateTests/stCreate2/RevertInCreateInInit.json64
-rw-r--r--GeneralStateTests/stCreate2/RevertOpcodeCreate.json73
-rw-r--r--GeneralStateTests/stCreate2/RevertOpcodeInCreateReturns.json64
5 files changed, 347 insertions, 0 deletions
diff --git a/GeneralStateTests/stCreate2/CreateMessageReverted.json b/GeneralStateTests/stCreate2/CreateMessageReverted.json
new file mode 100644
index 000000000..46f07436b
--- /dev/null
+++ b/GeneralStateTests/stCreate2/CreateMessageReverted.json
@@ -0,0 +1,73 @@
+{
+ "CreateMessageReverted" : {
+ "_info" : {
+ "comment" : "CreateMessageReverted for CREATE2",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/CreateMessageRevertedFiller.json",
+ "sourceHash" : "b3e26a0f8aaf0b1a065e02e1518b124e85c90e031f01a1d165f855b60bdd131c"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0xe8d4a51000",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0x123b0bb0e62149e1f9aaa88ec707d692794dd9fd3cd5beb16b74a320b466c811",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x3b40492e75dd1cbc21a69c63b64096c0fb1f9be29ee88efa116a532426f63752",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0493e0",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x69600c600055600d6001556000526000600a60166000f5",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x013880",
+ "0x0249f0"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x64"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreate2/CreateMessageRevertedOOGInInit.json b/GeneralStateTests/stCreate2/CreateMessageRevertedOOGInInit.json
new file mode 100644
index 000000000..5ac15874c
--- /dev/null
+++ b/GeneralStateTests/stCreate2/CreateMessageRevertedOOGInInit.json
@@ -0,0 +1,73 @@
+{
+ "CreateMessageRevertedOOGInInit" : {
+ "_info" : {
+ "comment" : "create2 oog during the init code, + when create2 is from transaction init code. but oog still in create2 init code",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/CreateMessageRevertedOOGInInitFiller.json",
+ "sourceHash" : "7243cf543edf7131ca5ccb0a91a135c7d20a14b3d19558f2c05dbda78b2d31a3"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0xe8d4a51000",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0xe90d055bebfbb9d11fde3f2b17c08ffab8e1e4d31b9ab48ccfb162fdea7413cc",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x075015589242bcfa9875b7ac8a9fe622d151ef62ca2d2833859cc8d8c2ded74a",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0493e0",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x69600c600055600d6001556000526000600a60166000f5"
+ ],
+ "gasLimit" : [
+ "0x01adb0",
+ "0x0249f0"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "",
+ "value" : [
+ "0x64"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreate2/RevertInCreateInInit.json b/GeneralStateTests/stCreate2/RevertInCreateInInit.json
new file mode 100644
index 000000000..3573b6ab4
--- /dev/null
+++ b/GeneralStateTests/stCreate2/RevertInCreateInInit.json
@@ -0,0 +1,64 @@
+{
+ "RevertInCreateInInit" : {
+ "_info" : {
+ "comment" : "RevertInCreateInInit for CREATE2",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/RevertInCreateInInitFiller.json",
+ "sourceHash" : "fa87cd61db233c995e24114bb267b17f33c2414518340d044871924cf882ad28"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0a00000000",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0xfdaa48a5eb4ecd412b7d8d84f56be53f98b3eb9dbb543a86f2e18fbdc8ac2f6e",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" : {
+ "balance" : "0x00",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x6400000000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x30506000600c80602460003960006000f5503d6000556020600060003e600051600155006211223360005260206000fd"
+ ],
+ "gasLimit" : [
+ "0x0a00000000"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreate2/RevertOpcodeCreate.json b/GeneralStateTests/stCreate2/RevertOpcodeCreate.json
new file mode 100644
index 000000000..8ab175b11
--- /dev/null
+++ b/GeneralStateTests/stCreate2/RevertOpcodeCreate.json
@@ -0,0 +1,73 @@
+{
+ "RevertOpcodeCreate" : {
+ "_info" : {
+ "comment" : "RevertOpcodeCreate for CREATE2",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/RevertOpcodeCreateFiller.json",
+ "sourceHash" : "180a272b96bc876c79ef124651b7fa9002e4395d812839975ef8b99d8f88f8c9"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0x2b88028ac173beaf52cdc4c6781c8852dd19e3c91f9fcbe4b543445351822b04",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x615b48a94ded12c5ed93c10d0e20408212f29febf87155607fae8e659cda8051",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x01",
+ "code" : "0x6e600160005560016000fd60116001556000526000600f60116001f5600155600c600055",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x600160005560016000fe6011600155"
+ ],
+ "gasLimit" : [
+ "0x0704e0",
+ "0x011170"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreate2/RevertOpcodeInCreateReturns.json b/GeneralStateTests/stCreate2/RevertOpcodeInCreateReturns.json
new file mode 100644
index 000000000..2a1b8459e
--- /dev/null
+++ b/GeneralStateTests/stCreate2/RevertOpcodeInCreateReturns.json
@@ -0,0 +1,64 @@
+{
+ "RevertOpcodeInCreateReturns" : {
+ "_info" : {
+ "comment" : "RevertOpcodeInCreateReturns for CREATE2",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/RevertOpcodeInCreateReturnsFiller.json",
+ "sourceHash" : "487957e60b2ebdaffcae9842ee0db952ccc8d602f4787b22001536a1ed19ae7a"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0a00000000",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0x9f3fe8a8d6a463dbc22b50c747f64bdcc5108039bce5fe153a8915b92903ae6d",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "0x6000600c80601560003960006000f5503d600055006211223360005260206000fd",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x6400000000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x0a00000000"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file