aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-09-13 22:48:51 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-09-13 22:48:51 +0800
commit583b87bb3d9d3d7e2dec0b3a678f1a56a6d21863 (patch)
tree6f18f804dde4922fcfbe016b220bc4a9e5046ff3 /test
parent5aa5fa78f32c89fcf8f635db026d18a6ba8ef132 (diff)
downloaddexon-solidity-583b87bb3d9d3d7e2dec0b3a678f1a56a6d21863.tar.gz
dexon-solidity-583b87bb3d9d3d7e2dec0b3a678f1a56a6d21863.tar.zst
dexon-solidity-583b87bb3d9d3d7e2dec0b3a678f1a56a6d21863.zip
Use "pending", not "latest" during ``eth_call`` in ``sendMessage``.
Diffstat (limited to 'test')
-rw-r--r--test/ExecutionFramework.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ExecutionFramework.cpp b/test/ExecutionFramework.cpp
index ea624735..3922d5e9 100644
--- a/test/ExecutionFramework.cpp
+++ b/test/ExecutionFramework.cpp
@@ -122,9 +122,9 @@ void ExecutionFramework::sendMessage(bytes const& _data, bool _isCreation, u256
if (!_isCreation)
{
d.to = dev::toString(m_contractAddress);
- BOOST_REQUIRE(m_rpc.eth_getCode(d.to, "latest").size() > 2);
+ BOOST_REQUIRE(m_rpc.eth_getCode(d.to, "pending").size() > 2);
// Use eth_call to get the output
- m_output = fromHex(m_rpc.eth_call(d, "latest"), WhenError::Throw);
+ m_output = fromHex(m_rpc.eth_call(d, "pending"), WhenError::Throw);
}
string txHash = m_rpc.eth_sendTransaction(d);