diff options
author | Dimitry <winsvega@mail.ru> | 2016-12-08 01:07:42 +0800 |
---|---|---|
committer | Dimitry <winsvega@mail.ru> | 2016-12-08 01:07:42 +0800 |
commit | df97106322e39ced3007bb3fee6b96003c791b5a (patch) | |
tree | 95a83e69dd91890ba807f4a17b572f38ad46a355 /src/GeneralStateTestsFiller/stInitCodeTest | |
parent | e0d64ef1dd2b058fcb97e1453334ccdaec8f6a8f (diff) | |
download | dexon-tests-df97106322e39ced3007bb3fee6b96003c791b5a.tar dexon-tests-df97106322e39ced3007bb3fee6b96003c791b5a.tar.gz dexon-tests-df97106322e39ced3007bb3fee6b96003c791b5a.tar.bz2 dexon-tests-df97106322e39ced3007bb3fee6b96003c791b5a.tar.lz dexon-tests-df97106322e39ced3007bb3fee6b96003c791b5a.tar.xz dexon-tests-df97106322e39ced3007bb3fee6b96003c791b5a.tar.zst dexon-tests-df97106322e39ced3007bb3fee6b96003c791b5a.zip |
upgrade eip158 to general tests
Diffstat (limited to 'src/GeneralStateTestsFiller/stInitCodeTest')
18 files changed, 178 insertions, 11 deletions
diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractAndCallItOOGFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractAndCallItOOGFiller.json index af12c5149..31965829b 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractAndCallItOOGFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractAndCallItOOGFiller.json @@ -34,6 +34,32 @@ } } } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "nonce" : "1", + "storage" : { + "0x" : "0xd2571607e241ecf590ed94b12d87c94babe36db6" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "1" + }, + "d2571607e241ecf590ed94b12d87c94babe36db6" : { + "balance" : "1", + "nonce" : "1", + "storage" : { + "0x" : "0x0c" + } + } + } } ], "pre" : { diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractNoCashFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractNoCashFiller.json index 3b25d514c..f6774d396 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractNoCashFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractNoCashFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Frontier","Homestead"], + "network" : ["Frontier","Homestead", "EIP158"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "nonce" : "0" diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractOOGBonusGasFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractOOGBonusGasFiller.json index 7cfb1c193..41a669340 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractOOGBonusGasFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractOOGBonusGasFiller.json @@ -34,6 +34,32 @@ } } } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "nonce" : "1", + "storage" : { + "0x" : "0xd2571607e241ecf590ed94b12d87c94babe36db6" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "1" + }, + "d2571607e241ecf590ed94b12d87c94babe36db6" : { + "balance" : "1", + "nonce" : "1", + "storage" : { + "0x" : "0x0c" + } + } + } } ], "pre" : { diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractOOGFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractOOGFiller.json index 7ca38d787..8289698e2 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractOOGFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractOOGFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Frontier","Homestead"], + "network" : ["Frontier","Homestead", "EIP158"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "nonce" : "0" diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractWhichWouldCreateContractIfCalledFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractWhichWouldCreateContractIfCalledFiller.json index 30d99d930..88acc27a5 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractWhichWouldCreateContractIfCalledFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractWhichWouldCreateContractIfCalledFiller.json @@ -37,6 +37,35 @@ } } } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "nonce" : "1", + "storage" : { + "0x" : "0xd2571607e241ecf590ed94b12d87c94babe36db6" + } + }, + "62c01474f089b07dae603491675dc5b5748f7049" : { + "shouldnotexist" : "1" + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "1" + }, + "d2571607e241ecf590ed94b12d87c94babe36db6" : { + "balance" : "2", + "nonce" : "2", + "storage" : { + "0x" : "0x0c" + } + } + } } ], "pre" : { diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractWhichWouldCreateContractInInitCodeFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractWhichWouldCreateContractInInitCodeFiller.json index c5ee8f6d4..d41f9954f 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractWhichWouldCreateContractInInitCodeFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/CallContractToCreateContractWhichWouldCreateContractInInitCodeFiller.json @@ -34,6 +34,32 @@ } } } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "1", + "nonce" : "1" + }, + "62c01474f089b07dae603491675dc5b5748f7049" : { + "shouldnotexist" : "1" + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "1" + }, + "d2571607e241ecf590ed94b12d87c94babe36db6" : { + "nonce" : "2", + "storage" : { + "0x" : "0x0c" + } + } + } } ], "pre" : { diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/CallRecursiveContractFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/CallRecursiveContractFiller.json index c9a342f2a..568016315 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/CallRecursiveContractFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/CallRecursiveContractFiller.json @@ -37,6 +37,29 @@ } } } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "1", + "nonce" : "41", + "storage" : { + "0x02" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" + } + }, + "1a4c83e1a9834cdc7e4a905ff7f0cf44aed73180" : { + "shouldnotexist" : "1" + }, + "8e3411c91d5dd4081b4846fa2f93808f5ad19686" : { + "shouldnotexist" : "1" + } + } } ], "pre" : { diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/CallTheContractToCreateEmptyContractFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/CallTheContractToCreateEmptyContractFiller.json index e4f72e886..1817dea3b 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/CallTheContractToCreateEmptyContractFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/CallTheContractToCreateEmptyContractFiller.json @@ -32,6 +32,30 @@ } } } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "1", + "nonce" : "1" + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "1" + }, + "d2571607e241ecf590ed94b12d87c94babe36db6" : { + "balance" : "0", + "code" : "0x", + "nonce" : "1", + "storage" : { + } + } + } } ], "pre" : { diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/NotEnoughCashContractCreationFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/NotEnoughCashContractCreationFiller.json index 845ae1205..c82921156 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/NotEnoughCashContractCreationFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/NotEnoughCashContractCreationFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Frontier","Homestead"], + "network" : ["Frontier","Homestead", "EIP158"], "result" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "22177" diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json index 6289e9a32..90c613ab1 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json @@ -28,7 +28,7 @@ "gas" : -1, "value" : -1 }, - "network" : "Homestead", + "network" : ["Homestead", "EIP158"], "result" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000" diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasPrefundedContractCreationFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasPrefundedContractCreationFiller.json index ef64c773f..aa9b95113 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasPrefundedContractCreationFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasPrefundedContractCreationFiller.json @@ -35,7 +35,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Homestead"], + "network" : ["Homestead", "EIP158"], "result" : { "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { "shouldnotexist" : "1" diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/ReturnTest2Filler.json b/src/GeneralStateTestsFiller/stInitCodeTest/ReturnTest2Filler.json index 93ebbf640..f0d4d2123 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/ReturnTest2Filler.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/ReturnTest2Filler.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Frontier","Homestead"], + "network" : ["Frontier","Homestead", "EIP158"], "result" : { "194f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/ReturnTestFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/ReturnTestFiller.json index 78459b764..07a441327 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/ReturnTestFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/ReturnTestFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Frontier","Homestead"], + "network" : ["Frontier","Homestead", "EIP158"], "result" : { "194f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/StackUnderFlowContractCreationFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/StackUnderFlowContractCreationFiller.json index 4ad3af366..7c5acb01a 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/StackUnderFlowContractCreationFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/StackUnderFlowContractCreationFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Frontier","Homestead"], + "network" : ["Frontier","Homestead", "EIP158"], "result" : { "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { "balance" : "72000" diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateAutoSuicideContractFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateAutoSuicideContractFiller.json index feddfab3e..9b18dfee2 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateAutoSuicideContractFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateAutoSuicideContractFiller.json @@ -21,6 +21,19 @@ "balance" : "15" } } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "0000000000000000000000000000000000000000" : { + "shouldnotexist" : "1" + } + } } ], "pre" : { diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateRandomInitCodeFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateRandomInitCodeFiller.json index 534ed8d94..1f44835c4 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateRandomInitCodeFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateRandomInitCodeFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Frontier","Homestead"], + "network" : ["Frontier","Homestead", "EIP158"], "result" : { "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { "balance" : "64599" diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateStopInInitcodeFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateStopInInitcodeFiller.json index a0dbb8d6a..b4b474b6e 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateStopInInitcodeFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateStopInInitcodeFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Frontier","Homestead"], + "network" : ["Frontier","Homestead", "EIP158"], "result" : { "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { "balance" : "1" diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateSuicideInInitcodeFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateSuicideInInitcodeFiller.json index 6bf9bd90b..d14eed1d9 100644 --- a/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateSuicideInInitcodeFiller.json +++ b/src/GeneralStateTestsFiller/stInitCodeTest/TransactionCreateSuicideInInitcodeFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : ["Frontier","Homestead"], + "network" : ["Frontier","Homestead", "EIP158"], "result" : { "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { "balance" : "55000" |