aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--GeneralStateTests/stBadOpcode/badOpcodeSSTOREBYTES.json123
-rw-r--r--src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSLOADBYTESFiller.json2
-rw-r--r--src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSSTOREBYTESFiller.json65
3 files changed, 189 insertions, 1 deletions
diff --git a/GeneralStateTests/stBadOpcode/badOpcodeSSTOREBYTES.json b/GeneralStateTests/stBadOpcode/badOpcodeSSTOREBYTES.json
new file mode 100644
index 000000000..9a5ae909a
--- /dev/null
+++ b/GeneralStateTests/stBadOpcode/badOpcodeSSTOREBYTES.json
@@ -0,0 +1,123 @@
+{
+ "badOpcodeSSTOREBYTES" : {
+ "_info" : {
+ "comment" : "",
+ "filledwith" : "cpp-1.3.0+commit.5b7f5e90.Linux.g++",
+ "source" : "/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSSTOREBYTESFiller.json"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0f4240",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x74850acdcf50d65c0e2f966ad2e8ad3d24ba78e8a6bea37580300bc98ee69451",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : [
+ ]
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x74850acdcf50d65c0e2f966ad2e8ad3d24ba78e8a6bea37580300bc98ee69451",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : [
+ ]
+ }
+ ],
+ "EIP150" : [
+ {
+ "hash" : "0x74850acdcf50d65c0e2f966ad2e8ad3d24ba78e8a6bea37580300bc98ee69451",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : [
+ ]
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "0x74850acdcf50d65c0e2f966ad2e8ad3d24ba78e8a6bea37580300bc98ee69451",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : [
+ ]
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "0x74850acdcf50d65c0e2f966ad2e8ad3d24ba78e8a6bea37580300bc98ee69451",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : [
+ ]
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "0x74850acdcf50d65c0e2f966ad2e8ad3d24ba78e8a6bea37580300bc98ee69451",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : [
+ ]
+ }
+ ]
+ },
+ "pre" : {
+ "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x600160006001e26001600255",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "0x061a80"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "0x0186a0"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSLOADBYTESFiller.json b/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSLOADBYTESFiller.json
index b4fb5560f..5f8612a16 100644
--- a/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSLOADBYTESFiller.json
+++ b/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSLOADBYTESFiller.json
@@ -15,7 +15,7 @@
"gas" : 0,
"value" : -1
},
- "network" : ["Byzantium"],
+ "network" : ["ALL"],
"result" : {
"095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"code": "SLOADBYTES: key, mstart, msize",
diff --git a/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSSTOREBYTESFiller.json b/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSSTOREBYTESFiller.json
new file mode 100644
index 000000000..6ad2a60ce
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSSTOREBYTESFiller.json
@@ -0,0 +1,65 @@
+{
+ "badOpcodeSSTOREBYTES" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["ALL"],
+ "result" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "code": "SSTOREBYTES: key, mstart, msize",
+ "code" : "0x 6001 6000 6001 e2 6001 6002 55",
+ "code": "0x600160006001e26001600255",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x600160006001e26001600255",
+ "nonce" : "0",
+ "storage" : {
+ "0x01": "0x01"
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code": "0x",
+ "nonce": "0",
+ "storage": {
+
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "400000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "100000"
+ ]
+ }
+ }
+}