diff options
author | Dimitry <dimitry@ethereum.org> | 2018-09-08 01:11:24 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2018-09-08 01:11:24 +0800 |
commit | e740a725a28bf7714abd0c400439f060fdd1e873 (patch) | |
tree | 019cc759befaf52924752ee513348ac3b8200442 /src/GeneralStateTestsFiller/stCreate2/create2checkFieldsInInitcodeFiller.json | |
parent | b87bd584634fd4061d54f7d8dd527d0eb43885e0 (diff) | |
download | tangerine-tests-e740a725a28bf7714abd0c400439f060fdd1e873.tar tangerine-tests-e740a725a28bf7714abd0c400439f060fdd1e873.tar.gz tangerine-tests-e740a725a28bf7714abd0c400439f060fdd1e873.tar.bz2 tangerine-tests-e740a725a28bf7714abd0c400439f060fdd1e873.tar.lz tangerine-tests-e740a725a28bf7714abd0c400439f060fdd1e873.tar.xz tangerine-tests-e740a725a28bf7714abd0c400439f060fdd1e873.tar.zst tangerine-tests-e740a725a28bf7714abd0c400439f060fdd1e873.zip |
create2 check fields in init code
Diffstat (limited to 'src/GeneralStateTestsFiller/stCreate2/create2checkFieldsInInitcodeFiller.json')
-rw-r--r-- | src/GeneralStateTestsFiller/stCreate2/create2checkFieldsInInitcodeFiller.json | 187 |
1 files changed, 187 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stCreate2/create2checkFieldsInInitcodeFiller.json b/src/GeneralStateTestsFiller/stCreate2/create2checkFieldsInInitcodeFiller.json new file mode 100644 index 000000000..fc00eb1c8 --- /dev/null +++ b/src/GeneralStateTestsFiller/stCreate2/create2checkFieldsInInitcodeFiller.json @@ -0,0 +1,187 @@ +{ + "create2checkFieldsInInitcode" : { + "_info" : { + "comment" : "Check opcode values in create2 init code. Create2 called with different call types." + }, + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "1000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : 0, + "gas" : -1, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "8c2950f075c34756bfa06b21b13ce910113e5958" : { + "balance" : "0", + "nonce" : "1", + "storage" : { + "0x00" : "0x8c2950f075c34756bfa06b21b13ce910113e5958", + "0x01" : "0", + "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "0x03" : "0xf000000000000000000000000000000000000000", + "0x04" : "0", + "0x05" : "0", + "0x06" : "0x21", + "0x07" : "1" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "1" + } + } + }, + { + "indexes" : { + "data" : 1, + "gas" : -1, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "753d879541ef32dd404b5c296b3f90d5723b22e6" : { + "balance" : "0", + "nonce" : "1", + "storage" : { + "0x00" : "0x753d879541ef32dd404b5c296b3f90d5723b22e6", + "0x01" : "0", + "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "0x03" : "0x2000000000000000000000000000000000000000", + "0x04" : "0", + "0x05" : "0", + "0x06" : "0x21", + "0x07" : "1" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "1" + } + } + }, + { + "indexes" : { + "data" : 2, + "gas" : -1, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "262ddf6ce5b06776eaa045900e933d0be3074c26" : { + "balance" : "0", + "nonce" : "1", + "storage" : { + "0x00" : "0x262ddf6ce5b06776eaa045900e933d0be3074c26", + "0x01" : "0", + "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "0x03" : "0x3000000000000000000000000000000000000000", + "0x04" : "0", + "0x05" : "0", + "0x06" : "0x21", + "0x07" : "1" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "1" + } + } + }, + { + "indexes" : { + "data" : 3, + "gas" : -1, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "1" + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code" : "0x", + "nonce" : "0", + "storage" : { + } + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "{ (CALL (GAS) (CALLDATALOAD 0) 0 0 0 0 0) }", + "nonce" : "0", + "storage" : { + } + }, + "1000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "{ (CALL (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0 0) }", + "nonce" : "0", + "storage" : { + } + }, + "2000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "{ (CALLCODE (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0 0) }", + "nonce" : "0", + "storage" : { + } + }, + "3000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "{ (DELEGATECALL (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0) }", + "nonce" : "0", + "storage" : { + } + }, + "4000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "{ (STATICCALL (GAS) 0xf200000000000000000000000000000000000000 0 0 0 256) [[10]] (MLOAD 0) }", + "nonce" : "0", + "storage" : { + } + }, + "f000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "{ (CREATE2 0 0 (lll (seq [[0]] (ADDRESS) [[1]] (BALANCE (ADDRESS)) [[2]] (ORIGIN) [[3]] (CALLER) [[4]] (CALLVALUE) [[5]] (CALLDATASIZE) [[6]] (CODESIZE) [[7]] (GASPRICE) ) 0) 0) }", + "nonce" : "0", + "storage" : { + } + }, + "f200000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "{ (CREATE2 0 0 (lll (seq [0] (ADDRESS) [32] (BALANCE (ADDRESS)) [64] (ORIGIN) [96] (CALLER) [128] (CALLVALUE) [160] (CALLDATASIZE) [192] (CODESIZE) [224] (GASPRICE) (RETURN 0 256) ) 0) 0) }", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x0000000000000000000000001000000000000000000000000000000000000000", + "0x0000000000000000000000002000000000000000000000000000000000000000", + "0x0000000000000000000000003000000000000000000000000000000000000000", + "0x0000000000000000000000004000000000000000000000000000000000000000" + ], + "gasLimit" : [ + "600000" + ], + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0" + ] + } + } +} |