aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-07-06 02:54:46 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-07-06 21:38:50 +0800
commit54522c9327db9e4c67c62c604a631fe74a01421d (patch)
treefe94f444138af926fcc7302125c0052c9b00986f
parent674ba3feaec3cf20038fd8e264f0729c8f5c90e7 (diff)
downloaddexon-tests-54522c9327db9e4c67c62c604a631fe74a01421d.tar
dexon-tests-54522c9327db9e4c67c62c604a631fe74a01421d.tar.gz
dexon-tests-54522c9327db9e4c67c62c604a631fe74a01421d.tar.bz2
dexon-tests-54522c9327db9e4c67c62c604a631fe74a01421d.tar.lz
dexon-tests-54522c9327db9e4c67c62c604a631fe74a01421d.tar.xz
dexon-tests-54522c9327db9e4c67c62c604a631fe74a01421d.tar.zst
dexon-tests-54522c9327db9e4c67c62c604a631fe74a01421d.zip
Use (SSTORE 0 1) in the init code to see if the CREATE succeeds or not
-rw-r--r--GeneralStateTests/stReturnDataTest/returndatacopy_0_0_following_successful_create.json14
-rw-r--r--src/GeneralStateTestsFiller/stReturnDataTest/returndatacopy_0_0_following_successful_createFiller.json11
2 files changed, 17 insertions, 8 deletions
diff --git a/GeneralStateTests/stReturnDataTest/returndatacopy_0_0_following_successful_create.json b/GeneralStateTests/stReturnDataTest/returndatacopy_0_0_following_successful_create.json
index 60dd845d9..f41893437 100644
--- a/GeneralStateTests/stReturnDataTest/returndatacopy_0_0_following_successful_create.json
+++ b/GeneralStateTests/stReturnDataTest/returndatacopy_0_0_following_successful_create.json
@@ -2,7 +2,7 @@
"returndatacopy_0_0_following_successful_create" : {
"_info" : {
"comment" : "",
- "filledwith" : "cpp-1.3.0+commit.5ad949e6.Linux.g++",
+ "filledwith" : "cpp-1.3.0+commit.29c877a3.Linux.g++",
"source" : "/src/GeneralStateTestsFiller/stReturnDataTest/returndatacopy_0_0_following_successful_createFiller.json"
},
"env" : {
@@ -16,7 +16,7 @@
"post" : {
"EIP150" : [
{
- "hash" : "0xa0e1a5e9eda3286789d1494bc14d1fb7e335e51ca6af7ee1c66c904be899699e",
+ "hash" : "0xe4cebf89f5dd511ecb89b3e97ce05d1225202ff5ce2b0b9d81c96892694ac020",
"indexes" : {
"data" : 0,
"gas" : 0,
@@ -26,7 +26,7 @@
],
"EIP158" : [
{
- "hash" : "0xa0e1a5e9eda3286789d1494bc14d1fb7e335e51ca6af7ee1c66c904be899699e",
+ "hash" : "0xe4cebf89f5dd511ecb89b3e97ce05d1225202ff5ce2b0b9d81c96892694ac020",
"indexes" : {
"data" : 0,
"gas" : 0,
@@ -36,7 +36,7 @@
],
"Frontier" : [
{
- "hash" : "0xa0e1a5e9eda3286789d1494bc14d1fb7e335e51ca6af7ee1c66c904be899699e",
+ "hash" : "0xe4cebf89f5dd511ecb89b3e97ce05d1225202ff5ce2b0b9d81c96892694ac020",
"indexes" : {
"data" : 0,
"gas" : 0,
@@ -46,7 +46,7 @@
],
"Homestead" : [
{
- "hash" : "0xa0e1a5e9eda3286789d1494bc14d1fb7e335e51ca6af7ee1c66c904be899699e",
+ "hash" : "0xe4cebf89f5dd511ecb89b3e97ce05d1225202ff5ce2b0b9d81c96892694ac020",
"indexes" : {
"data" : 0,
"gas" : 0,
@@ -56,7 +56,7 @@
],
"Metropolis" : [
{
- "hash" : "0x6045552a0f67f71dbe0bd165b03178a7c94d6b388ba265f68b5969e04ccf2507",
+ "hash" : "0xe5612a75f1f88badf3d4faf86108f59eb5c568d658cd7fb37f1fbf8fcf96f307",
"indexes" : {
"data" : 0,
"gas" : 0,
@@ -68,7 +68,7 @@
"pre" : {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : "0x00",
- "code" : "0x596000526001806022600051396000516000f0506000600060003e6000516000550000",
+ "code" : "0x600580601b60003960006000f0506000600060003e6000600055006001600055",
"nonce" : "0x00",
"storage" : {
"0x00" : "0x01"
diff --git a/src/GeneralStateTestsFiller/stReturnDataTest/returndatacopy_0_0_following_successful_createFiller.json b/src/GeneralStateTestsFiller/stReturnDataTest/returndatacopy_0_0_following_successful_createFiller.json
index 421215345..a0fc298f9 100644
--- a/src/GeneralStateTestsFiller/stReturnDataTest/returndatacopy_0_0_following_successful_createFiller.json
+++ b/src/GeneralStateTestsFiller/stReturnDataTest/returndatacopy_0_0_following_successful_createFiller.json
@@ -20,6 +20,9 @@
"storage" : {
"0x00" : "0x01"
}
+ },
+ "945304eb96065b2a98b57a48a06ae28d285a71b5" : {
+ "shouldexist" : false
}
}
},
@@ -34,6 +37,11 @@
"storage" : {
"0x00" : "0x00"
}
+ },
+ "945304eb96065b2a98b57a48a06ae28d285a71b5" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
}
}
}
@@ -41,7 +49,8 @@
"pre" : {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : "0x00",
- "code" : "{ (create (STOP)) (RETURNDATACOPY 0 0 0) (SSTORE 0 (MLOAD 0)) }",
+ "code" : "create should succeed. RETURNDATACOPY should also succeed in Metropolis.",
+ "code" : "{ (create 0 0 (lll {(SSTORE 0 1)} 0)) (RETURNDATACOPY 0 0 0) (SSTORE 0 0) }",
"nonce" : "0x00",
"storage" : {
"0x00" : "0x01"