aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-12-14 23:31:29 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-12-14 23:45:23 +0800
commitcc4af0976a0eabbd0da71e55ce6c38344d25f031 (patch)
tree067f7c77347fa128e7cca8c3af69c02480178161 /src/GeneralStateTestsFiller
parentf36743f209ff1cf3187e3f1ba19fbda9ff5e94a0 (diff)
downloadtangerine-tests-cc4af0976a0eabbd0da71e55ce6c38344d25f031.tar
tangerine-tests-cc4af0976a0eabbd0da71e55ce6c38344d25f031.tar.gz
tangerine-tests-cc4af0976a0eabbd0da71e55ce6c38344d25f031.tar.bz2
tangerine-tests-cc4af0976a0eabbd0da71e55ce6c38344d25f031.tar.lz
tangerine-tests-cc4af0976a0eabbd0da71e55ce6c38344d25f031.tar.xz
tangerine-tests-cc4af0976a0eabbd0da71e55ce6c38344d25f031.tar.zst
tangerine-tests-cc4af0976a0eabbd0da71e55ce6c38344d25f031.zip
Test RETURNDATASIZE and RETURNDATACOPY in RevertInDelegateCallFiller
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r--src/GeneralStateTestsFiller/stRevertTest/RevertInDelegateCallFiller.json22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertInDelegateCallFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertInDelegateCallFiller.json
index 04dd6dfc4..87de005e3 100644
--- a/src/GeneralStateTestsFiller/stRevertTest/RevertInDelegateCallFiller.json
+++ b/src/GeneralStateTestsFiller/stRevertTest/RevertInDelegateCallFiller.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" : {
+ "1": "32",
+ "2": "10"
+ }
+ }
+ }
}
],
"pre" : {
"1000000000000000000000000000000000000000" : {
"balance" : "1000",
- "code" : "{ [[ 0 ]] (DELEGATECALL 50000 0x945304eb96065b2a98b57a48a06ae28d285a71b5 0 64 0 64 )}",
+ "code" : "{ [[ 0 ]] (DELEGATECALL 50000 0x945304eb96065b2a98b57a48a06ae28d285a71b5 0 64 0 64 ) [[ 1 ]] (RETURNDATASIZE) (RETURNDATACOPY 63 0 32) [[2]](MLOAD 63)}",
"nonce" : "0",
"storage" : {
}
},
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
"balance" : "0",
- "code" : "{ (REVERT 0 0) }",
+ "code" : "{ (MSTORE 32 10) (REVERT 32 32) }",
"nonce" : "0",
"storage" : {
}