aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller
diff options
context:
space:
mode:
authorJared Wasinger <j-wasinger@hotmail.com>2017-08-15 00:01:29 +0800
committerJared Wasinger <j-wasinger@hotmail.com>2017-08-17 02:57:43 +0800
commitb942cb51183ccfcdac4b2f77f5e8fe505a2e9592 (patch)
tree28c8659df1399156fafba5ce057d97a80524abb4 /src/GeneralStateTestsFiller
parent2fef7532ab9c9cc54c80de54db054257559bde9f (diff)
downloadtangerine-tests-b942cb51183ccfcdac4b2f77f5e8fe505a2e9592.tar
tangerine-tests-b942cb51183ccfcdac4b2f77f5e8fe505a2e9592.tar.gz
tangerine-tests-b942cb51183ccfcdac4b2f77f5e8fe505a2e9592.tar.bz2
tangerine-tests-b942cb51183ccfcdac4b2f77f5e8fe505a2e9592.tar.lz
tangerine-tests-b942cb51183ccfcdac4b2f77f5e8fe505a2e9592.tar.xz
tangerine-tests-b942cb51183ccfcdac4b2f77f5e8fe505a2e9592.tar.zst
tangerine-tests-b942cb51183ccfcdac4b2f77f5e8fe505a2e9592.zip
add SLOADBYTES
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r--src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSLOADBYTESFiller.json2
-rw-r--r--src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSSTOREBYTESFiller.json65
2 files changed, 66 insertions, 1 deletions
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"
+ ]
+ }
+ }
+}