Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #683 test STATICCALL violation in call to precompile #700

Merged
merged 6 commits into from
Jun 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"StaticcallToPrecompileFromContractInitialization_d0g0v0_Istanbul" : {
"_info" : {
"comment" : "STATICCALL to precompiled contracts from contract initialization code.\nIt should execute successfully for each precompiled contract.\n",
"filling-rpc-server" : "Geth-1.9.16-unstable-02cea233-20200626",
"filling-tool-version" : "retesteth-0.0.6-profiling-berlin+commit.967b21d3.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2020.6.2+commit.f07a86ee.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stStaticCall/StaticcallToPrecompileFromContractInitializationFiller.yml",
"sourceHash" : "d2a57486e0433fa65659d46c9b3b7dee56a87f6936e8874ab476e6aa76923423"
},
"genesisBlockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0xcafe000000000000000000000000000000000001",
"difficulty" : "0x020000",
"extraData" : "0x00",
"gasLimit" : "0x989680",
"gasUsed" : "0x00",
"hash" : "0x4256f7fdda738547a419fe87296c671f5f76e6e489d08bb5a8e65264345736e6",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x00",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot" : "0x59df46d3387b238f4140448e734b6677f36c0649d200bc621a831416dc42119f",
"timestamp" : "0x00",
"transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"pre" : {
"0xa000000000000000000000000000000000000000" : {
"balance" : "0x00",
"code" : "0x366000600037655a175a175a173660006000f560005500",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"postState" : {
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"code" : "0x",
"nonce" : "0x01",
"balance" : "0x0de0b6b3a759f638",
"storage" : {
}
},
"0xa000000000000000000000000000000000000000" : {
"code" : "0x366000600037655a175a175a173660006000f560005500",
"nonce" : "0x01",
"balance" : "0x64",
"storage" : {
"0x00" : "0xfad204ed1275b429b66c9ce0614d62832d6b2580"
}
},
"0xfad204ed1275b429b66c9ce0614d62832d6b2580" : {
"code" : "0x",
"nonce" : "0x01",
"balance" : "0x00",
"storage" : {
"0x00" : "0x01",
"0x01" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"0x02" : "0x01",
"0x03" : "0x01",
"0x04" : "0x0ccccccccccccccccccccccccccccccccccccccccccccccccccc000000",
"0x05" : "0x73f5062fb68ed2a1ec82ff8c73f9251bb9cf53a623bc93527e16bc5ae29dad74",
"0x06" : "0x01",
"0x07" : "0x0ccccccccccccccccccccccccccccccccccccccccccccccccccc000000",
"0x08" : "0x14ef238cfa4075e9ede92f18b1566c1dd0b99aaa",
"0x09" : "0x01",
"0x10" : "0x0ccccccccccccccccccccccccccccccccccccccccccccccccccc000000",
"0x11" : "0x01",
"0x12" : "0x01",
"0x13" : "0x01",
"0x14" : "0x1f4d1d80177b1377743d1901f70d7389be7f7a35a35bfd234a8aaee615b88c49",
"0x15" : "0x018683193ae021a2f8920fed186cde5d9b1365116865281ccf884c1f28b1df8f",
"0x16" : "0x01",
"0x17" : "0x1f4d1d80177b1377743d1901f70d7389be7f7a35a35bfd234a8aaee615b88c49",
"0x18" : "0x018683193ae021a2f8920fed186cde5d9b1365116865281ccf884c1f28b1df8f",
"0x19" : "0x01",
"0x20" : "0x01"
}
},
"0xcafe000000000000000000000000000000000001" : {
"code" : "0x",
"nonce" : "0x00",
"balance" : "0x1bc16d674ed20964",
"storage" : {
}
}
},
"network" : "Istanbul",
"sealEngine" : "NoProof",
"lastblockhash" : "0x7def4991950d3d4569626b2da9d49c0ac1fb62397361311b578cd49e32417d2a",
"genesisRLP" : "0xf901f8f901f3a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794cafe000000000000000000000000000000000001a059df46d3387b238f4140448e734b6677f36c0649d200bc621a831416dc42119fa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808000a00000000000000000000000000000000000000000000000000000000000000000880000000000000000c0c0",
"blocks" : [
{
"rlp" : "0xf907c3f901f8a04256f7fdda738547a419fe87296c671f5f76e6e489d08bb5a8e65264345736e6a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794cafe000000000000000000000000000000000001a032f77980d323ebc3e0c7597c0dcbd2689f6b2bd0e3ce6b438906c63a429fd686a0e97ab6d3f17ffa88e592616c7e970d6a92ca12a6b9f562575e342300e92574ada09d151e2c67b5b7693560308da4dbe8a2783c9e999fc34e484ac3f7642c46f2cfb901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018398bca4830a09648203e800a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f905c4f905c18001830f424094a00000000000000000000000000000000000000064b9055f7f18c547e4f7b0f325ad1e56f57e26c745b09a3e503d86e00e5255ff7f715d3d1c600052601c6020527f73b1693892219d736caba55bdb67216e485557ea6b6af75f37096c9aa6a5a75f6040527feeb940b1d03b21e36b0e47e79769f095fe2ab855bd91e3a38756b7d75a9c454960605260206103e860806000600162061a80fa60005560a060020a6103e851066001556001543214600255600060005260006020526000604052600060605260006103e8527c0ccccccccccccccccccccccccccccccccccccccccccccccccccc00000060005260206103e86020600060025afa6003556000516004556103e851600555600060005260006103e8527c0ccccccccccccccccccccccccccccccccccccccccccccccccccc00000060005260206103e86020600060035afa6006556000516007556103e851600855600060005260006103e8527c0ccccccccccccccccccccccccccccccccccccccccccccccccccc00000060005260206103e86020600060045afa6009556103e851601055600060005260006103e8526001600052602060205260206040527f03fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc6060527f2efffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc6080527f2f0000000000000000000000000000000000000000000000000000000000000060a05260206103e860a1600060055afa6011556103e85160125560006000526000602052600060405260006060526000608052600060a05260006103e8527f0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd26000527f16da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba6020527f1de49a4b0233273bba8146af82042d004f2085ec982397db0d97da17204cc2866040527f0217327ffc463919bef80cc166d09c6172639d8589799928761bcd9f22c903d460605260406103e86080600060065afa6013556103e85160145561040851601555600060005260006020526000604052600060605260006103e8526000610408527f0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd26000527f16da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba602052600360405260406103e86060600060075afa6016556103e8516017556104085160185560006000526000602052600060405260006103e8526000610408527f1c76476f4def4bb94541d57ebba1193381ffa7aa76ada664dd31c16024c43f596000527f3034dd2920f673e204fee2811c678745fc819b55d3e9d294e45c9b03a76aef416020527f209dd15ebff5d46c4bd888e51a93cf99a7329636c63514396b4a452003a35bf76040527f04bf11ca01483bfa8b34b43561848d28905960114c8ac04049af4b6315a416786060527f2bb8324af6cfc93537a2ad1a445cfd0ca2a71acd7ac41fadbf933c2a51be344d6080527f120a2a4cf30c1bf9845f20c6fe39e07ea2cce61f0c9bb048165fe5e4de87755060a0527f111e129f1cf1097710d41c4ac70fcdfa5ba2023c6ff1cbeac322de49d1b6df7c60c0527f2032c61a830e3c17286de9462bf242fca2883585b93870a73853face6a6bf41160e0527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c2610100527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed610120527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b610140527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa6101605260206103e8610180600060085afa6019556103e851602055001ca0e10e8e6ec43b74b85971039af76ac88e5498fc0248e5085ed329d1ad10a29dbea078606af3d35b4ea7976b38c750ec0b7447625c4fd03cfd65be3c37678a57be67c0",
"blockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0xcafe000000000000000000000000000000000001",
"difficulty" : "0x020000",
"extraData" : "0x00",
"gasLimit" : "0x98bca4",
"gasUsed" : "0x0a0964",
"hash" : "0x7def4991950d3d4569626b2da9d49c0ac1fb62397361311b578cd49e32417d2a",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x01",
"parentHash" : "0x4256f7fdda738547a419fe87296c671f5f76e6e489d08bb5a8e65264345736e6",
"receiptTrie" : "0x9d151e2c67b5b7693560308da4dbe8a2783c9e999fc34e484ac3f7642c46f2cf",
"stateRoot" : "0x32f77980d323ebc3e0c7597c0dcbd2689f6b2bd0e3ce6b438906c63a429fd686",
"timestamp" : "0x03e8",
"transactionsTrie" : "0xe97ab6d3f17ffa88e592616c7e970d6a92ca12a6b9f562575e342300e92574ad",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"transactions" : [
{
"data" : "0x7f18c547e4f7b0f325ad1e56f57e26c745b09a3e503d86e00e5255ff7f715d3d1c600052601c6020527f73b1693892219d736caba55bdb67216e485557ea6b6af75f37096c9aa6a5a75f6040527feeb940b1d03b21e36b0e47e79769f095fe2ab855bd91e3a38756b7d75a9c454960605260206103e860806000600162061a80fa60005560a060020a6103e851066001556001543214600255600060005260006020526000604052600060605260006103e8527c0ccccccccccccccccccccccccccccccccccccccccccccccccccc00000060005260206103e86020600060025afa6003556000516004556103e851600555600060005260006103e8527c0ccccccccccccccccccccccccccccccccccccccccccccccccccc00000060005260206103e86020600060035afa6006556000516007556103e851600855600060005260006103e8527c0ccccccccccccccccccccccccccccccccccccccccccccccccccc00000060005260206103e86020600060045afa6009556103e851601055600060005260006103e8526001600052602060205260206040527f03fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc6060527f2efffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc6080527f2f0000000000000000000000000000000000000000000000000000000000000060a05260206103e860a1600060055afa6011556103e85160125560006000526000602052600060405260006060526000608052600060a05260006103e8527f0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd26000527f16da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba6020527f1de49a4b0233273bba8146af82042d004f2085ec982397db0d97da17204cc2866040527f0217327ffc463919bef80cc166d09c6172639d8589799928761bcd9f22c903d460605260406103e86080600060065afa6013556103e85160145561040851601555600060005260006020526000604052600060605260006103e8526000610408527f0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd26000527f16da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba602052600360405260406103e86060600060075afa6016556103e8516017556104085160185560006000526000602052600060405260006103e8526000610408527f1c76476f4def4bb94541d57ebba1193381ffa7aa76ada664dd31c16024c43f596000527f3034dd2920f673e204fee2811c678745fc819b55d3e9d294e45c9b03a76aef416020527f209dd15ebff5d46c4bd888e51a93cf99a7329636c63514396b4a452003a35bf76040527f04bf11ca01483bfa8b34b43561848d28905960114c8ac04049af4b6315a416786060527f2bb8324af6cfc93537a2ad1a445cfd0ca2a71acd7ac41fadbf933c2a51be344d6080527f120a2a4cf30c1bf9845f20c6fe39e07ea2cce61f0c9bb048165fe5e4de87755060a0527f111e129f1cf1097710d41c4ac70fcdfa5ba2023c6ff1cbeac322de49d1b6df7c60c0527f2032c61a830e3c17286de9462bf242fca2883585b93870a73853face6a6bf41160e0527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c2610100527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed610120527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b610140527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa6101605260206103e8610180600060085afa6019556103e85160205500",
"gasLimit" : "0x0f4240",
"gasPrice" : "0x01",
"nonce" : "0x00",
"to" : "0xa000000000000000000000000000000000000000",
"value" : "0x64",
"v" : "0x1c",
"r" : "0xe10e8e6ec43b74b85971039af76ac88e5498fc0248e5085ed329d1ad10a29dbe",
"s" : "0x78606af3d35b4ea7976b38c750ec0b7447625c4fd03cfd65be3c37678a57be67"
}
],
"uncleHeaders" : [
]
}
]
}
}
Loading