mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use "pending", not "latest" during `eth_call
in
sendMessage
`.
This commit is contained in:
parent
5aa5fa78f3
commit
583b87bb3d
@ -122,9 +122,9 @@ void ExecutionFramework::sendMessage(bytes const& _data, bool _isCreation, u256
|
|||||||
if (!_isCreation)
|
if (!_isCreation)
|
||||||
{
|
{
|
||||||
d.to = dev::toString(m_contractAddress);
|
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
|
// 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);
|
string txHash = m_rpc.eth_sendTransaction(d);
|
||||||
|
Loading…
Reference in New Issue
Block a user