aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2018-01-04 18:01:14 +0800
committerGitHub <noreply@github.com>2018-01-04 18:01:14 +0800
commit4acca6378c92fbb25eab975a9807f7f72362b0da (patch)
treed90b6f210a1de79bb8fd4b421426fae1c980eec0 /src/GeneralStateTestsFiller
parent2bb0c3da3bbb15c528bcef2a7e5ac4bd73f81f87 (diff)
parent2562d0da24bb26dad1754aa1dab7b0779b353109 (diff)
downloadtangerine-tests-4acca6378c92fbb25eab975a9807f7f72362b0da.tar
tangerine-tests-4acca6378c92fbb25eab975a9807f7f72362b0da.tar.gz
tangerine-tests-4acca6378c92fbb25eab975a9807f7f72362b0da.tar.bz2
tangerine-tests-4acca6378c92fbb25eab975a9807f7f72362b0da.tar.lz
tangerine-tests-4acca6378c92fbb25eab975a9807f7f72362b0da.tar.xz
tangerine-tests-4acca6378c92fbb25eab975a9807f7f72362b0da.tar.zst
tangerine-tests-4acca6378c92fbb25eab975a9807f7f72362b0da.zip
Merge pull request #387 from ethereum/returndata-after-revert-in-callcode
Add a test for RETURNDATASIZE/COPY after a revert during a CALLCODE
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r--src/GeneralStateTestsFiller/stRevertTest/RevertInCallCodeFiller.json22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertInCallCodeFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertInCallCodeFiller.json
index ef3cbf743..1b8019865 100644
--- a/src/GeneralStateTestsFiller/stRevertTest/RevertInCallCodeFiller.json
+++ b/src/GeneralStateTestsFiller/stRevertTest/RevertInCallCodeFiller.json
@@ -15,26 +15,42 @@
"gas" : -1,
"value" : -1
},
- "network" : "ALL",
+ "network" : ["Frontier", "Homestead", "EIP150", "EIP158"],
"result" : {
"1000000000000000000000000000000000000000" : {
"storage" : {
}
}
}
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : "Byzantium",
+ "result" : {
+ "1000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x20",
+ "0x02" : "0x2232"
+ }
+ }
+ }
}
],
"pre" : {
"1000000000000000000000000000000000000000" : {
"balance" : "1000",
- "code" : "{ [[ 0 ]] (CALLCODE 50000 0x945304eb96065b2a98b57a48a06ae28d285a71b5 1000 0 64 0 64 )}",
+ "code" : "{ [[ 0 ]] (CALLCODE 50000 0x945304eb96065b2a98b57a48a06ae28d285a71b5 1000 0 64 0 64 ) [[ 1 ]] (RETURNDATASIZE) (RETURNDATACOPY 64 0 32) [[ 2 ]] (MLOAD 64) }",
"nonce" : "0",
"storage" : {
}
},
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
"balance" : "0",
- "code" : "{ (REVERT 0 0) }",
+ "code" : "{ (MSTORE 0 0x2232) (REVERT 0 32) }",
"nonce" : "0",
"storage" : {
}