EVMHost: Add function to print storage at all addresses in the host.

This commit is contained in:
Bhargava Shastry
2021-03-01 20:00:55 +01:00
parent 069ac9c9a9
commit e96a3e01f8
2 changed files with 24 additions and 0 deletions
+5
View File
@@ -61,6 +61,11 @@ public:
tx_context.block_timestamp += 15;
recorded_logs.clear();
}
/// Prints contents of storage at all addresses in host to @param _os.
void print_all_storage(std::ostringstream& _os);
/// @returns contents of storage at @param _addr.
std::unordered_map<evmc::bytes32, evmc::storage_value> const& get_address_storage(evmc::address const& _addr);
bool account_exists(evmc::address const& _addr) const noexcept final
{