EVMHost: Remove unneeded methods

This commit is contained in:
Paweł Bylica
2019-12-02 23:22:27 +01:00
committed by Alex Beregszaszi
parent 0bd80ed958
commit cdcfea73ab
3 changed files with 7 additions and 84 deletions
+3 -2
View File
@@ -233,9 +233,10 @@ u256 ExecutionFramework::balanceAt(Address const& _addr)
bool ExecutionFramework::storageEmpty(Address const& _addr)
{
if (auto const* acc = m_evmHost->account(EVMHost::convertToEVMC(_addr)))
const auto it = m_evmHost->accounts.find(EVMHost::convertToEVMC(_addr));
if (it != m_evmHost->accounts.end())
{
for (auto const& entry: acc->storage)
for (auto const& entry: it->second.storage)
if (!(entry.second.value == evmc::bytes32{}))
return false;
}