mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
EVMHost: Use std::map for storage so that slots are stored in some order.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <evmc/evmc.hpp>
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
@@ -48,7 +49,7 @@ struct MockedAccount
|
||||
uint256be balance;
|
||||
|
||||
/// The account storage map.
|
||||
std::unordered_map<bytes32, storage_value> storage;
|
||||
std::map<bytes32, storage_value> storage;
|
||||
|
||||
/// Helper method for setting balance by numeric type.
|
||||
void set_balance(uint64_t x) noexcept
|
||||
|
||||
Reference in New Issue
Block a user