aboutsummaryrefslogtreecommitdiffstats
path: root/GeneralStateTests
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-09-12 20:59:06 +0800
committerDimitry <dimitry@ethereum.org>2018-09-12 20:59:06 +0800
commitb5020fac5760e66707e6f6fd11a3295137221db1 (patch)
tree731b044609b0d53b3bfff921b13c288a8af53a6d /GeneralStateTests
parentd1b7f959bfc8c6c77baef11a4e14a50c558a37a9 (diff)
downloadtangerine-tests-b5020fac5760e66707e6f6fd11a3295137221db1.tar
tangerine-tests-b5020fac5760e66707e6f6fd11a3295137221db1.tar.gz
tangerine-tests-b5020fac5760e66707e6f6fd11a3295137221db1.tar.bz2
tangerine-tests-b5020fac5760e66707e6f6fd11a3295137221db1.tar.lz
tangerine-tests-b5020fac5760e66707e6f6fd11a3295137221db1.tar.xz
tangerine-tests-b5020fac5760e66707e6f6fd11a3295137221db1.tar.zst
tangerine-tests-b5020fac5760e66707e6f6fd11a3295137221db1.zip
REVERT in CREATE2
Diffstat (limited to 'GeneralStateTests')
-rw-r--r--GeneralStateTests/stCreate2/CreateMessageReverted.json73
-rw-r--r--GeneralStateTests/stCreate2/RevertInCreateInInit.json64
-rw-r--r--GeneralStateTests/stCreate2/RevertOpcodeCreate.json73
-rw-r--r--GeneralStateTests/stCreate2/RevertOpcodeInCreateReturns.json64
4 files changed, 274 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/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