aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian Sutton <adrian.sutton@consensys.net>2018-11-13 06:52:19 +0800
committerAdrian Sutton <adrian.sutton@consensys.net>2018-11-13 06:52:19 +0800
commit87352f2c2fb4522381d5d7e4bd10d9184314bade (patch)
treeb0f157bb9369624431f483acf056d90c3adf1254 /src
parent6a3f10e004d1586d592e71429c17cd73160a6062 (diff)
downloadtangerine-tests-87352f2c2fb4522381d5d7e4bd10d9184314bade.tar
tangerine-tests-87352f2c2fb4522381d5d7e4bd10d9184314bade.tar.gz
tangerine-tests-87352f2c2fb4522381d5d7e4bd10d9184314bade.tar.bz2
tangerine-tests-87352f2c2fb4522381d5d7e4bd10d9184314bade.tar.lz
tangerine-tests-87352f2c2fb4522381d5d7e4bd10d9184314bade.tar.xz
tangerine-tests-87352f2c2fb4522381d5d7e4bd10d9184314bade.tar.zst
tangerine-tests-87352f2c2fb4522381d5d7e4bd10d9184314bade.zip
Add more dynamic argument test cases to cover non-existent accounts, precompiles (existing and non-existing) and empty accounts.
Diffstat (limited to 'src')
-rw-r--r--src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDynamicArgumentFiller.json128
1 files changed, 102 insertions, 26 deletions
diff --git a/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDynamicArgumentFiller.json b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDynamicArgumentFiller.json
index 5ae89827e..adb71f04a 100644
--- a/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDynamicArgumentFiller.json
+++ b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDynamicArgumentFiller.json
@@ -1,22 +1,60 @@
{
- "extCodeHashDynamicArgument" : {
- "_info" : {
- "comment": "EXTCODEHASH/EXTCODESIZE with address from a dynamic argument"
- },
- "env" : {
- "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
- "currentDifficulty" : "0x20000",
- "currentGasLimit" : "1000000",
- "currentNumber" : "1",
- "currentTimestamp" : "1000",
- "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ "extCodeHashDynamicArgument": {
+ "_info": {
+ "comment": "EXTCODEHASH/EXTCODESIZE with address from a dynamic argument"
+ },
+ "env": {
+ "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty": "0x20000",
+ "currentGasLimit": "1000000",
+ "currentNumber": "1",
+ "currentTimestamp": "1000",
+ "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"expect": [
{
"indexes": {
- "data": -1,
- "gas": -1,
- "value": -1
+ "data": 0,
+ "gas": 0,
+ "value": 0
+ },
+ "network": [
+ ">Byzantium"
+ ],
+ "result": {
+ "deadbeef00000000000000000000000000000000": {
+ "balance": "1000000000000000001",
+ "storage": {
+ "0x00": "0x00",
+ "0x01": "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes": {
+ "data": 1,
+ "gas": 0,
+ "value": 0
+ },
+ "network": [
+ ">Byzantium"
+ ],
+ "result": {
+ "deadbeef00000000000000000000000000000000": {
+ "balance": "1000000000000000001",
+ "storage": {
+ "0x00": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
+ "0x01": "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes": {
+ "data": 2,
+ "gas": 0,
+ "value": 0
},
"network": [
">Byzantium"
@@ -33,24 +71,51 @@
},
{
"indexes": {
- "data": -1,
- "gas": -1,
- "value": -1
+ "data": 3,
+ "gas": 0,
+ "value": 0
},
"network": [
- "<=Byzantium"
+ ">Byzantium"
+ ],
+ "result": {
+ "deadbeef00000000000000000000000000000000": {
+ "balance": "1000000000000000001",
+ "storage": {
+ "0x00": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
+ "0x01": "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes": {
+ "data": 4,
+ "gas": 0,
+ "value": 0
+ },
+ "network": [
+ ">Byzantium"
],
"result": {
"deadbeef00000000000000000000000000000000": {
- "balance": "1000000000000000000",
+ "balance": "1000000000000000001",
"storage": {
- "0x00": "0xdeadbeef"
+ "0x00": "0x00",
+ "0x01": "0x00"
}
}
}
}
],
"pre": {
+ "0000000000000000000000000000000000000002": {
+ "balance": "10",
+ "code": "",
+ "nonce": "0",
+ "storage": {
+ }
+ },
"deadbeef00000000000000000000000000000000": {
"balance": "1000000000000000000",
"code": "{ [[0]] (EXTCODEHASH (CALLDATALOAD 0)) [[1]] (EXTCODESIZE (CALLDATALOAD 0)) }",
@@ -59,11 +124,18 @@
"0x00": "0xdeadbeef"
}
},
- "deadbeef00000000000000000000000000000001" : {
- "balance" : "1000000000000000000",
- "code" : "0x1234",
- "nonce" : "0",
- "storage" : {
+ "deadbeef00000000000000000000000000000001": {
+ "balance": "1000000000000000000",
+ "code": "0x1234",
+ "nonce": "0",
+ "storage": {
+ }
+ },
+ "deadbeef00000000000000000000000000000002": {
+ "balance": "1000000000000000000",
+ "code": "",
+ "nonce": "0",
+ "storage": {
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
@@ -76,7 +148,11 @@
},
"transaction": {
"data": [
- "0x000000000000000000000000deadbeef00000000000000000000000000000001"
+ "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "0x0000000000000000000000000000000000000000000000000000000000000002",
+ "0x000000000000000000000000deadbeef00000000000000000000000000000001",
+ "0x000000000000000000000000deadbeef00000000000000000000000000000002",
+ "0x000000000000000000000000deadbeef00000000000000000000000000000005"
],
"gasLimit": [
"400000"