From d520593078fa0849dcd1f907e44ed0a616892e33 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Tue, 4 Apr 2017 15:58:31 +0400 Subject: 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. --- .../stRevertTest/RevertOpcodeReturnFiller.json | 45 +++++++++------------- 1 file changed, 19 insertions(+), 26 deletions(-) (limited to 'src') 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" -- cgit v1.2.3