aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityExecutionFramework.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-06-17 06:47:42 +0800
committerchriseth <c@ethdev.com>2016-06-29 05:18:55 +0800
commit007132a78e5d97e0476e1153b14f0ae63f458b04 (patch)
tree64246ff3102c5cd6abf73305658489e769d03f70 /test/libsolidity/SolidityExecutionFramework.cpp
parent93c8fc094e601f8d1105a820e64ac6c5fe7298f2 (diff)
downloaddexon-solidity-007132a78e5d97e0476e1153b14f0ae63f458b04.tar
dexon-solidity-007132a78e5d97e0476e1153b14f0ae63f458b04.tar.gz
dexon-solidity-007132a78e5d97e0476e1153b14f0ae63f458b04.tar.bz2
dexon-solidity-007132a78e5d97e0476e1153b14f0ae63f458b04.tar.lz
dexon-solidity-007132a78e5d97e0476e1153b14f0ae63f458b04.tar.xz
dexon-solidity-007132a78e5d97e0476e1153b14f0ae63f458b04.tar.zst
dexon-solidity-007132a78e5d97e0476e1153b14f0ae63f458b04.zip
Fix empty storage check.
Diffstat (limited to 'test/libsolidity/SolidityExecutionFramework.cpp')
-rw-r--r--test/libsolidity/SolidityExecutionFramework.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityExecutionFramework.cpp b/test/libsolidity/SolidityExecutionFramework.cpp
index 8c026ffd..abb564db 100644
--- a/test/libsolidity/SolidityExecutionFramework.cpp
+++ b/test/libsolidity/SolidityExecutionFramework.cpp
@@ -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;
}