Skip to content

Commit

Permalink
Merge pull request #563 from ethereum/moreextcodehash
Browse files Browse the repository at this point in the history
extcodehash of a dynamic account created in a subcall + OOG
  • Loading branch information
winsvega committed Dec 6, 2018
2 parents 95b69d2 + 94d0617 commit fa338f8
Show file tree
Hide file tree
Showing 15 changed files with 2,513 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
{
"extCodeHashSubcallOOG_d0g0v0_Constantinople" : {
"_info" : {
"comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)",
"filledwith" : "testeth 1.5.0-alpha.6-70+commit.f344e78c.dirty",
"lllcversion" : "Version: 0.5.0-develop.2018.10.24+commit.01566c2e.Linux.g++",
"source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0Filler.json",
"sourceHash" : "529c1f979761ae08d14154f42c14e7d0ab858c29993eefb7fbacc8533f02555f"
},
"blocks" : [
{
"blockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"difficulty" : "0x020000",
"extraData" : "",
"gasLimit" : "0x989680",
"gasUsed" : "0x021c33",
"hash" : "0xbeb9f278650c7e3809a3caaaaeef64d9c60216eb91d4052b50aa02ea1b541adb",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x01",
"parentHash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a",
"receiptTrie" : "0x1ee0fa746648bb481123d5494e13457881a581bddf1cded69c24832b0b0c3569",
"stateRoot" : "0xb660bf46851bef34ee8cb2e465c6592479618cda718678ddaee7f7175d725191",
"timestamp" : "0x03e8",
"transactionsTrie" : "0xf1f4919989052ed720877d8089dbfd1c9ab9c5eba8cc33b5c0e8bdf2a4c85a79",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"rlp" : "0xf90280f901f8a075dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0b660bf46851bef34ee8cb2e465c6592479618cda718678ddaee7f7175d725191a0f1f4919989052ed720877d8089dbfd1c9ab9c5eba8cc33b5c0e8bdf2a4c85a79a01ee0fa746648bb481123d5494e13457881a581bddf1cded69c24832b0b0c3569b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018398968083021c338203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f882f880800183061a8094100000000000000000000000000000000000000001a000000000000000000000000020000000000000000000000000000000000000001ba0b4a1dd19e4fcb531bf8ae54ae29584b8fa4364f29e7879c3aa63a1763e82cc6da0293b7f102d2c0f2161e69e70d141926827654f00240fc8f7ed39558d6e2b4887c0",
"transactions" : [
{
"data" : "0x0000000000000000000000002000000000000000000000000000000000000000",
"gasLimit" : "0x061a80",
"gasPrice" : "0x01",
"nonce" : "0x00",
"r" : "0xb4a1dd19e4fcb531bf8ae54ae29584b8fa4364f29e7879c3aa63a1763e82cc6d",
"s" : "0x293b7f102d2c0f2161e69e70d141926827654f00240fc8f7ed39558d6e2b4887",
"to" : "0x1000000000000000000000000000000000000000",
"v" : "0x1b",
"value" : "0x01"
}
],
"uncleHeaders" : [
]
}
],
"genesisBlockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"difficulty" : "0x020000",
"extraData" : "0x42",
"gasLimit" : "0x989680",
"gasUsed" : "0x00",
"hash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a",
"mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"nonce" : "0x0102030405060708",
"number" : "0x00",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot" : "0x1d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350",
"timestamp" : "0x03b6",
"transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa01d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0",
"lastblockhash" : "0xbeb9f278650c7e3809a3caaaaeef64d9c60216eb91d4052b50aa02ea1b541adb",
"network" : "Constantinople",
"postState" : {
"0x1000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640001",
"code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455",
"nonce" : "0x00",
"storage" : {
"0x01" : "0x9ff1f274b33e3b56edd7734520cbcdf2699fc1dc78b51644cdc56ca65bebeeae",
"0x02" : "0x05",
"0x03" : "0x6020602055000000000000000000000000000000000000000000000000000000",
"0x04" : "0x01"
}
},
"0x2000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x2100000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x2200000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
"balance" : "0x1bc16d674eca1c33",
"code" : "",
"nonce" : "0x00",
"storage" : {
}
},
"0x3000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x3100000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x3200000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x62ae0b997c8230e321b19d06b7004f25e1ac0637" : {
"balance" : "0x00",
"code" : "0x6020602055",
"nonce" : "0x01",
"storage" : {
}
},
"0xa000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3",
"nonce" : "0x01",
"storage" : {
}
},
"0xa100000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a761e3cc",
"code" : "0x00",
"nonce" : "0x01",
"storage" : {
}
}
},
"pre" : {
"0x1000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455",
"nonce" : "0x00",
"storage" : {
}
},
"0x2000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x2100000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x2200000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x3000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x3100000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0x3200000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3",
"nonce" : "0x00",
"storage" : {
}
},
"0xa000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3",
"nonce" : "0x00",
"storage" : {
}
},
"0xa100000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x00",
"nonce" : "0x00",
"storage" : {
}
}
},
"sealEngine" : "NoProof"
}
}

0 comments on commit fa338f8

Please sign in to comment.