mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
EVMHost: properly populate implicit access list for Berlin
This commit is contained in:
parent
5bfd26287c
commit
c66c5c9f1d
@ -275,6 +275,14 @@ evmc::result EVMHost::call(evmc_message const& _message) noexcept
|
|||||||
destination.balance = convertToEVMC(u256(convertFromEVMC(destination.balance)) + value);
|
destination.balance = convertToEVMC(u256(convertFromEVMC(destination.balance)) + value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Populate the access access list.
|
||||||
|
// Note, this will also properly touch the created address.
|
||||||
|
// TODO: support a user supplied access list too
|
||||||
|
if (m_evmRevision >= EVMC_BERLIN)
|
||||||
|
{
|
||||||
|
access_account(message.sender);
|
||||||
|
access_account(message.destination);
|
||||||
|
}
|
||||||
evmc::address currentAddress = m_currentAddress;
|
evmc::address currentAddress = m_currentAddress;
|
||||||
m_currentAddress = message.destination;
|
m_currentAddress = message.destination;
|
||||||
evmc::result result = m_vm.execute(*this, m_evmRevision, message, code.data(), code.size());
|
evmc::result result = m_vm.execute(*this, m_evmRevision, message, code.data(), code.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user