mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix empty storage check.
This commit is contained in:
parent
93c8fc094e
commit
007132a78e
@ -116,5 +116,7 @@ u256 ExecutionFramework::balanceAt(Address const& _addr)
|
|||||||
|
|
||||||
bool ExecutionFramework::storageEmpty(Address const& _addr)
|
bool ExecutionFramework::storageEmpty(Address const& _addr)
|
||||||
{
|
{
|
||||||
return h256(m_rpc.eth_getStorageRoot(toString(_addr), "latest")) == EmptySHA3;
|
h256 root(m_rpc.eth_getStorageRoot(toString(_addr), "latest"));
|
||||||
|
BOOST_CHECK(root);
|
||||||
|
return root == EmptyTrie;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user