diff options
author | Dimitry <dimitry@ethereum.org> | 2018-11-09 19:54:19 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2018-11-09 19:54:19 +0800 |
commit | 54982e9003c0ba941e105f06636c2c0a0bc72a62 (patch) | |
tree | 578f91ea1f89dbd022b97895b436fa21aa6e958e /src/GeneralStateTestsFiller | |
parent | 23b54177735bfae4bf32f28dd52e2671135dcabd (diff) | |
download | dexon-tests-54982e9003c0ba941e105f06636c2c0a0bc72a62.tar dexon-tests-54982e9003c0ba941e105f06636c2c0a0bc72a62.tar.gz dexon-tests-54982e9003c0ba941e105f06636c2c0a0bc72a62.tar.bz2 dexon-tests-54982e9003c0ba941e105f06636c2c0a0bc72a62.tar.lz dexon-tests-54982e9003c0ba941e105f06636c2c0a0bc72a62.tar.xz dexon-tests-54982e9003c0ba941e105f06636c2c0a0bc72a62.tar.zst dexon-tests-54982e9003c0ba941e105f06636c2c0a0bc72a62.zip |
fill initial stExtCodeHash testsextcodehash
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r-- | src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashInInitCodeFiller.json | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashInInitCodeFiller.json b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashInInitCodeFiller.json new file mode 100644 index 000000000..2c595ac51 --- /dev/null +++ b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashInInitCodeFiller.json @@ -0,0 +1,94 @@ +{ + "extCodeHashInInitCode" : { + "_info" : { + "comment": "EXTCODEHASH/EXTCODESIZE of an account during init code(creation code)" + }, + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "1000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : 0, + "gas" : -1, + "value" : -1 + }, + "network" : ["Byzantium"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "shouldnotexist" : "1" + } + } + }, + { + "indexes" : { + "data" : 0, + "gas" : -1, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "storage" : { + "0x00" : "0x36712aa4d0dd2f64a9ae6ac09555133a157c74ddf7c079a70c33e8b4bf70dd73", + "0x01" : "4" + } + } + } + }, + { + "indexes" : { + "data" : 1, + "gas" : -1, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "9122274c7d948cae743de3b0743236d50460cd54" : { + "storage" : { + "0x00" : "0x36712aa4d0dd2f64a9ae6ac09555133a157c74ddf7c079a70c33e8b4bf70dd73", + "0x01" : "4" + } + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code" : "0x", + "nonce" : "0", + "storage" : { + } + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code" : "0x11223344", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "{ [[0]] (EXTCODEHASH 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b) [[1]] (EXTCODESIZE 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b) }", + "{ (seq (CREATE2 0 0 (lll (seq [[0]] (EXTCODEHASH 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b) [[1]] (EXTCODESIZE 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b) ) 0) 0) (STOP) )}" + ], + "gasLimit" : [ + "400000" + ], + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "", + "value" : [ + "1" + ] + } + } +} |