EVMHost: mark precompiles as existing accounts in the constructor

This commit is contained in:
Alex Beregszaszi
2019-12-02 20:49:33 +01:00
parent 578d69983d
commit 2a62425f0a
2 changed files with 14 additions and 4 deletions
-4
View File
@@ -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;
}