From dada22233f8d30f0f52a788955ad15e13ef77950 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Wed, 16 Aug 2017 18:48:31 +0000 Subject: check for all possible invalid opcodes. --- .../stBadOpcode/badOpcodesFiller.json | 89 ++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 src/GeneralStateTestsFiller/stBadOpcode/badOpcodesFiller.json (limited to 'src/GeneralStateTestsFiller/stBadOpcode/badOpcodesFiller.json') diff --git a/src/GeneralStateTestsFiller/stBadOpcode/badOpcodesFiller.json b/src/GeneralStateTestsFiller/stBadOpcode/badOpcodesFiller.json new file mode 100644 index 000000000..79bcf2e0f --- /dev/null +++ b/src/GeneralStateTestsFiller/stBadOpcode/badOpcodesFiller.json @@ -0,0 +1,89 @@ +{ + "badOpcodes" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "1000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : 0, + "value" : 0 + }, + "network" : ["ALL"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "shouldnotexist": 1 + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code": "0x", + "nonce": "0", + "storage": { + } + } + }, + "transaction" : { + "data" : [ + "0x60016001600160010c", + "0x60016001600160010d", + "0x60016001600160010e", + "0x60016001600160010f", + "0x60016001600160011b", + "0x60016001600160011c", + "0x60016001600160011d", + "0x60016001600160011e", + "0x60016001600160011f", + "0x600160016001600121", + "0x600160016001600122", + "0x600160016001600123", + "0x600160016001600124", + "0x600160016001600125", + "0x600160016001600126", + "0x600160016001600127", + "0x600160016001600128", + "0x600160016001600129", + "0x60016001600160012a", + "0x60016001600160012b", + "0x60016001600160012c", + "0x60016001600160012d", + "0x60016001600160012e", + "0x60016001600160012f", + "0x60016001600160013f", + "0x600160016001600146", + "0x600160016001600147", + "0x600160016001600148", + "0x600160016001600149", + "0x60016001600160014a", + "0x60016001600160014b", + "0x60016001600160014c", + "0x60016001600160014d", + "0x60016001600160014e", + "0x60016001600160014f", + "0x60016001600160015c", + "0x60016001600160015d", + "0x60016001600160015e", + "0x60016001600160015f" + ], + "gasLimit" : [ + "400000" + ], + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "", + "value" : [ + "100000" + ] + } + } +} -- cgit v1.2.3