mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
EVMHost: mark precompiles as existing accounts in the constructor
This commit is contained in:
@@ -70,10 +70,6 @@ public:
|
||||
|
||||
Account* account(evmc::address const& _address)
|
||||
{
|
||||
// Make all precompiled contracts exist.
|
||||
// Be future-proof and consider everything below 1024 as precompiled contract.
|
||||
if (u160(convertFromEVMC(_address)) < 1024)
|
||||
m_state.accounts[_address];
|
||||
auto it = m_state.accounts.find(_address);
|
||||
return it == m_state.accounts.end() ? nullptr : &it->second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user