diff options
author | chriseth <c@ethdev.com> | 2016-06-17 06:47:42 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-06-29 05:18:55 +0800 |
commit | 007132a78e5d97e0476e1153b14f0ae63f458b04 (patch) | |
tree | 64246ff3102c5cd6abf73305658489e769d03f70 /test/libsolidity/SolidityExecutionFramework.cpp | |
parent | 93c8fc094e601f8d1105a820e64ac6c5fe7298f2 (diff) | |
download | dexon-solidity-007132a78e5d97e0476e1153b14f0ae63f458b04.tar.gz 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.cpp | 4 |
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; } |