aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2017-08-21 20:54:01 +0800
committerGitHub <noreply@github.com>2017-08-21 20:54:01 +0800
commit2fde1505725ef8ce30c128b7693d195be1da7941 (patch)
tree90be029c35ddccdd938495370abc72d4eb061ff2 /src/GeneralStateTestsFiller
parentd876c78f752247aef566dab427526da96fc69bf1 (diff)
parentdada22233f8d30f0f52a788955ad15e13ef77950 (diff)
downloadtangerine-tests-2fde1505725ef8ce30c128b7693d195be1da7941.tar
tangerine-tests-2fde1505725ef8ce30c128b7693d195be1da7941.tar.gz
tangerine-tests-2fde1505725ef8ce30c128b7693d195be1da7941.tar.bz2
tangerine-tests-2fde1505725ef8ce30c128b7693d195be1da7941.tar.lz
tangerine-tests-2fde1505725ef8ce30c128b7693d195be1da7941.tar.xz
tangerine-tests-2fde1505725ef8ce30c128b7693d195be1da7941.tar.zst
tangerine-tests-2fde1505725ef8ce30c128b7693d195be1da7941.zip
Merge pull request #261 from jwasinger/master
Add State Tests for Unused Opcodes
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r--src/GeneralStateTestsFiller/stBadOpcode/badOpcodesFiller.json89
1 files changed, 89 insertions, 0 deletions
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"
+ ]
+ }
+ }
+}