aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stRevertTest
diff options
context:
space:
mode:
authorDimitry <dimitry@ethdev.com>2017-04-04 19:58:31 +0800
committerDimitry <dimitry@ethdev.com>2017-04-04 19:58:31 +0800
commitd520593078fa0849dcd1f907e44ed0a616892e33 (patch)
tree135c38bef3021437f5dd82502f31ccf2a588dbea /src/GeneralStateTestsFiller/stRevertTest
parent05bffb4d7d6c2a5d6ee763693cf1c6a8d684b5ae (diff)
downloaddexon-tests-d520593078fa0849dcd1f907e44ed0a616892e33.tar
dexon-tests-d520593078fa0849dcd1f907e44ed0a616892e33.tar.gz
dexon-tests-d520593078fa0849dcd1f907e44ed0a616892e33.tar.bz2
dexon-tests-d520593078fa0849dcd1f907e44ed0a616892e33.tar.lz
dexon-tests-d520593078fa0849dcd1f907e44ed0a616892e33.tar.xz
dexon-tests-d520593078fa0849dcd1f907e44ed0a616892e33.tar.zst
dexon-tests-d520593078fa0849dcd1f907e44ed0a616892e33.zip
REVERT test case:
return empty output but with non-zero memory index (e.g. offset 1, length 0). test case 2: big index, size 0.
Diffstat (limited to 'src/GeneralStateTestsFiller/stRevertTest')
-rw-r--r--src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeReturnFiller.json45
1 files changed, 19 insertions, 26 deletions
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeReturnFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeReturnFiller.json
index dd57096f0..11dd70926 100644
--- a/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeReturnFiller.json
+++ b/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeReturnFiller.json
@@ -52,30 +52,7 @@
},
{
"indexes" : {
- "data" : [1,3],
- "gas" : 0,
- "value" : -1
- },
- "network" : ["Metropolis"],
- "result" : {
- "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
- "nonce" : "1"
- },
- "a000000000000000000000000000000000000000" : {
- "storage" : {
- "0x01" : "0x00",
- "0x02" : "0x00"
- }
- },
- "a100000000000000000000000000000000000000" : {
- "storage" : {
- }
- }
- }
- },
- {
- "indexes" : {
- "data" : [2],
+ "data" : [1,2,3,4,5],
"gas" : 0,
"value" : -1
},
@@ -136,7 +113,21 @@
},
"a400000000000000000000000000000000000000" : {
"balance" : "0",
- "code" : "{ (SSTORE 0 0x72657665727465642064617461) (MSTORE 0 0x726576657274206d657373616765) (REVERT 0x100 0x00) }",
+ "code" : "{ (SSTORE 0 0x72657665727465642064617461) (MSTORE 0 0x726576657274206d657373616765) (REVERT 0x0100 0x00) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a500000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ (SSTORE 0 0x72657665727465642064617461) (MSTORE 0 0x726576657274206d657373616765) (REVERT 0x01 0x00) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a600000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ (SSTORE 0 0x72657665727465642064617461) (MSTORE 0 0x726576657274206d657373616765) (REVERT 0xfffffffffffffffffffffffffffff 0x00) }",
"nonce" : "0",
"storage" : {
}
@@ -147,7 +138,9 @@
"000000000000000000000000a100000000000000000000000000000000000000",
"000000000000000000000000a200000000000000000000000000000000000000",
"000000000000000000000000a300000000000000000000000000000000000000",
- "000000000000000000000000a400000000000000000000000000000000000000"
+ "000000000000000000000000a400000000000000000000000000000000000000",
+ "000000000000000000000000a500000000000000000000000000000000000000",
+ "000000000000000000000000a600000000000000000000000000000000000000"
],
"gasLimit" : [
"800000", "70000"