Upgrade to EVMC 7.5.0

One important change: MockedAccount.storage is a map and not unordered_map
This commit is contained in:
Alex Beregszaszi
2021-04-21 21:05:40 +01:00
parent 83213e659d
commit f1aaae36ee
8 changed files with 93 additions and 80 deletions
+1 -3
View File
@@ -173,7 +173,7 @@ void EVMHost::selfdestruct(const evmc::address& _addr, const evmc::address& _ben
accounts.erase(_addr);
accounts[_beneficiary].balance = balance;
// Record self destructs
recorded_selfdestructs.push_back({_addr, _beneficiary, balance});
recorded_selfdestructs.push_back({_addr, _beneficiary});
}
void EVMHost::recordCalls(evmc_message const& _message) noexcept
@@ -814,8 +814,6 @@ void EVMHostPrinter::selfdestructRecords()
m_stateStream << "SELFDESTRUCT"
<< " BENEFICIARY "
<< m_host.convertFromEVMC(record.beneficiary)
<< " BALANCE "
<< m_host.convertFromEVMC(record.balance)
<< endl;
}