mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
set and map to hash tables
This commit is contained in:
parent
f81b304555
commit
de01400fb4
@ -305,7 +305,7 @@ void ImportTest::checkExpectedState(State const& _stateExpect, State const& _sta
|
|||||||
|
|
||||||
if (addressOptions.m_bHasStorage)
|
if (addressOptions.m_bHasStorage)
|
||||||
{
|
{
|
||||||
map<u256, u256> stateStorage = _statePost.storage(a.first);
|
unordered_map<u256, u256> stateStorage = _statePost.storage(a.first);
|
||||||
for (auto const& s: _stateExpect.storage(a.first))
|
for (auto const& s: _stateExpect.storage(a.first))
|
||||||
CHECK(stateStorage[s.first] == s.second,
|
CHECK(stateStorage[s.first] == s.second,
|
||||||
"Check State: " << a.first << ": incorrect storage [" << s.first << "] = " << toHex(stateStorage[s.first]) << ", expected [" << s.first << "] = " << toHex(s.second));
|
"Check State: " << a.first << ": incorrect storage [" << s.first << "] = " << toHex(stateStorage[s.first]) << ", expected [" << s.first << "] = " << toHex(s.second));
|
||||||
|
Loading…
Reference in New Issue
Block a user