diff options
author | Jared Wasinger <j-wasinger@hotmail.com> | 2017-08-14 23:41:19 +0800 |
---|---|---|
committer | Jared Wasinger <j-wasinger@hotmail.com> | 2017-08-17 02:57:43 +0800 |
commit | 2fef7532ab9c9cc54c80de54db054257559bde9f (patch) | |
tree | 770a09ed1e1820a853198f0a6b3bb6802d2b85c5 /GeneralStateTests | |
parent | 7cba9efabe71dd780c9aaf79ea19ec5ca03b14dd (diff) | |
download | dexon-tests-2fef7532ab9c9cc54c80de54db054257559bde9f.tar dexon-tests-2fef7532ab9c9cc54c80de54db054257559bde9f.tar.gz dexon-tests-2fef7532ab9c9cc54c80de54db054257559bde9f.tar.bz2 dexon-tests-2fef7532ab9c9cc54c80de54db054257559bde9f.tar.lz dexon-tests-2fef7532ab9c9cc54c80de54db054257559bde9f.tar.xz dexon-tests-2fef7532ab9c9cc54c80de54db054257559bde9f.tar.zst dexon-tests-2fef7532ab9c9cc54c80de54db054257559bde9f.zip |
add badOpcode tests for SLOADBYTES and SSIZE
Diffstat (limited to 'GeneralStateTests')
-rw-r--r-- | GeneralStateTests/stBadOpcode/badOpcodeSLOADBYTES.json | 123 | ||||
-rw-r--r-- | GeneralStateTests/stBadOpcode/badOpcodeSSIZE.json | 123 | ||||
-rw-r--r-- | GeneralStateTests/stExample/add11.json | 2 |
3 files changed, 247 insertions, 1 deletions
diff --git a/GeneralStateTests/stBadOpcode/badOpcodeSLOADBYTES.json b/GeneralStateTests/stBadOpcode/badOpcodeSLOADBYTES.json new file mode 100644 index 000000000..773747bc0 --- /dev/null +++ b/GeneralStateTests/stBadOpcode/badOpcodeSLOADBYTES.json @@ -0,0 +1,123 @@ +{ + "badOpcodeSLOADBYTES" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.5b7f5e90.Linux.g++", + "source" : "/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSLOADBYTESFiller.json" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x0f4240", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0x2d8a45dd7d6462558957dea03cab348db012f3b09b3798fc4656a2e9c5417c88", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Constantinople" : [ + { + "hash" : "0x2d8a45dd7d6462558957dea03cab348db012f3b09b3798fc4656a2e9c5417c88", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP150" : [ + { + "hash" : "0x2d8a45dd7d6462558957dea03cab348db012f3b09b3798fc4656a2e9c5417c88", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP158" : [ + { + "hash" : "0x2d8a45dd7d6462558957dea03cab348db012f3b09b3798fc4656a2e9c5417c88", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Frontier" : [ + { + "hash" : "0x2d8a45dd7d6462558957dea03cab348db012f3b09b3798fc4656a2e9c5417c88", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Homestead" : [ + { + "hash" : "0x2d8a45dd7d6462558957dea03cab348db012f3b09b3798fc4656a2e9c5417c88", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ] + }, + "pre" : { + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x600160006001e16001600255", + "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/GeneralStateTests/stBadOpcode/badOpcodeSSIZE.json b/GeneralStateTests/stBadOpcode/badOpcodeSSIZE.json new file mode 100644 index 000000000..86cb38851 --- /dev/null +++ b/GeneralStateTests/stBadOpcode/badOpcodeSSIZE.json @@ -0,0 +1,123 @@ +{ + "badOpcodeSSIZE" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.5b7f5e90.Linux.g++", + "source" : "/src/GeneralStateTestsFiller/stBadOpcode/badOpcodeSSIZEFiller.json" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x0f4240", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0x18e2b3978b235f437aad7b69c5c7aa2881f9b643b0054106b8f88793e504e9e7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Constantinople" : [ + { + "hash" : "0x18e2b3978b235f437aad7b69c5c7aa2881f9b643b0054106b8f88793e504e9e7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP150" : [ + { + "hash" : "0x18e2b3978b235f437aad7b69c5c7aa2881f9b643b0054106b8f88793e504e9e7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP158" : [ + { + "hash" : "0x18e2b3978b235f437aad7b69c5c7aa2881f9b643b0054106b8f88793e504e9e7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Frontier" : [ + { + "hash" : "0x18e2b3978b235f437aad7b69c5c7aa2881f9b643b0054106b8f88793e504e9e7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Homestead" : [ + { + "hash" : "0x18e2b3978b235f437aad7b69c5c7aa2881f9b643b0054106b8f88793e504e9e7", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ] + }, + "pre" : { + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6001600155e36001600255", + "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/GeneralStateTests/stExample/add11.json b/GeneralStateTests/stExample/add11.json index b9a3ef104..870e7bb28 100644 --- a/GeneralStateTests/stExample/add11.json +++ b/GeneralStateTests/stExample/add11.json @@ -2,7 +2,7 @@ "add11" : { "_info" : { "comment" : "", - "filledwith" : "cpp-1.3.0+commit.26123543.Linux.g++", + "filledwith" : "cpp-1.3.0+commit.5b7f5e90.Linux.g++", "source" : "/src/GeneralStateTestsFiller/stExample/add11Filler.json" }, "env" : { |