Fix empty storage check.

This commit is contained in:
chriseth 2016-06-17 00:47:42 +02:00
parent 93c8fc094e
commit 007132a78e

View File

@ -116,5 +116,7 @@ u256 ExecutionFramework::balanceAt(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;
}