diff options
author | winsvega <winsvega@mail.ru> | 2017-12-22 07:06:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-22 07:06:54 +0800 |
commit | 8a287c5823a154eced83e68b07ed07da00f47267 (patch) | |
tree | 908af3a75237a9a21b97ac042f22e7f0a95b52af | |
parent | 2ee7c50caf8c9d24eac8dbfd89b83b7d563db882 (diff) | |
parent | 224d5bdda72733ff75678283418c51a2258d201d (diff) | |
download | dexon-tests-8a287c5823a154eced83e68b07ed07da00f47267.tar dexon-tests-8a287c5823a154eced83e68b07ed07da00f47267.tar.gz dexon-tests-8a287c5823a154eced83e68b07ed07da00f47267.tar.bz2 dexon-tests-8a287c5823a154eced83e68b07ed07da00f47267.tar.lz dexon-tests-8a287c5823a154eced83e68b07ed07da00f47267.tar.xz dexon-tests-8a287c5823a154eced83e68b07ed07da00f47267.tar.zst dexon-tests-8a287c5823a154eced83e68b07ed07da00f47267.zip |
Merge pull request #386 from ethereum/evm
evmBytecode test
-rw-r--r-- | GeneralStateTests/stBugs/evmBytecode.json | 107 | ||||
-rw-r--r-- | src/GeneralStateTestsFiller/stBugs/evmBytecodeFiller.json | 58 |
2 files changed, 165 insertions, 0 deletions
diff --git a/GeneralStateTests/stBugs/evmBytecode.json b/GeneralStateTests/stBugs/evmBytecode.json new file mode 100644 index 000000000..60d699f58 --- /dev/null +++ b/GeneralStateTests/stBugs/evmBytecode.json @@ -0,0 +1,107 @@ +{ + "evmBytecode" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.637b57f0.Linux.g++", + "lllcversion" : "Version: 0.4.18-develop.2017.10.11+commit.81f9f86c.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stBugs/evmBytecodeFiller.json", + "sourceHash" : "56143a075193369d977763a32ae70c235b7c26fa617d7fc696df11b1156dc8ca" + }, + "env" : { + "currentCoinbase" : "0x1000000000000000000000000000000000000000", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x54a60a4202e088", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x0da7f1041f7b60aec6b67cafa0c08c10c9954d0b43737891d204ff372d166593" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0x960c0b0b3f90a33ecc2bbf380769e425d01112fd92fa250c648165bf40a54a62", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "EIP150" : [ + { + "hash" : "0x960c0b0b3f90a33ecc2bbf380769e425d01112fd92fa250c648165bf40a54a62", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "EIP158" : [ + { + "hash" : "0x960c0b0b3f90a33ecc2bbf380769e425d01112fd92fa250c648165bf40a54a62", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "Frontier" : [ + { + "hash" : "0x960c0b0b3f90a33ecc2bbf380769e425d01112fd92fa250c648165bf40a54a62", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "Homestead" : [ + { + "hash" : "0x960c0b0b3f90a33ecc2bbf380769e425d01112fd92fa250c648165bf40a54a62", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x38beec8feeca2598", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x67ffffffffffffffff600160006000fb", + "nonce" : "0x3f", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x01d4c0" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0x00" + ] + } + } +}
\ No newline at end of file diff --git a/src/GeneralStateTestsFiller/stBugs/evmBytecodeFiller.json b/src/GeneralStateTestsFiller/stBugs/evmBytecodeFiller.json new file mode 100644 index 000000000..3ee9b90b0 --- /dev/null +++ b/src/GeneralStateTestsFiller/stBugs/evmBytecodeFiller.json @@ -0,0 +1,58 @@ +{ + "evmBytecode": { + "env": { + "currentCoinbase": "0x1000000000000000000000000000000000000000", + "currentDifficulty": "0x20000", + "currentGasLimit": "0x54a60a4202e088", + "currentNumber": "0x01", + "currentTimestamp": "0x03e8", + "previousHash": "0x0da7f1041f7b60aec6b67cafa0c08c10c9954d0b43737891d204ff372d166593" + }, + "expect" : [ + { + "indexes" : { + "data" : [0], + "gas" : 0, + "value" : 0 + }, + "network" : ["ALL"], + "result" : { + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage": { + "0x01" : "0x00" + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce": "0x01" + } + } + } + ], + "pre": { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0x38beec8feeca2598", + "code": "", + "nonce": "0x00", + "storage": {} + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0", + "code": "0x67FFFFFFFFFFFFFFFF600160006000FB", + "nonce": "0x3f", + "storage": { + } + } + }, + "transaction": { + "data": [ + "" + ], + "gasLimit": ["120000"], + "gasPrice": "0x01", + "nonce": "0x00", + "secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value": ["0x00"] + } + } +} |