aboutsummaryrefslogtreecommitdiffstats
path: root/solidityExecutionFramework.h
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-12-12 20:33:42 +0800
committerGav Wood <i@gavwood.com>2014-12-12 22:53:57 +0800
commit6b44029adcf8389574ba198bf32382f4c5983d68 (patch)
tree52ac5c5537d948af224e2fabfa695107a417b649 /solidityExecutionFramework.h
parent696b5b3a493d7e9c8bee455bed24bdfcfe3a1fb0 (diff)
downloaddexon-solidity-6b44029adcf8389574ba198bf32382f4c5983d68.tar.gz
dexon-solidity-6b44029adcf8389574ba198bf32382f4c5983d68.tar.zst
dexon-solidity-6b44029adcf8389574ba198bf32382f4c5983d68.zip
Beginnings of cleaning up the Executive/State code.
Diffstat (limited to 'solidityExecutionFramework.h')
-rw-r--r--solidityExecutionFramework.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/solidityExecutionFramework.h b/solidityExecutionFramework.h
index 9d40e8a4..91ee7ad6 100644
--- a/solidityExecutionFramework.h
+++ b/solidityExecutionFramework.h
@@ -117,7 +117,7 @@ private:
void sendMessage(bytes const& _data, bool _isCreation, u256 const& _value = 0)
{
m_state.addBalance(m_sender, _value); // just in case
- eth::Executive executive(m_state);
+ eth::Executive executive(m_state, 0);
eth::Transaction t = _isCreation ? eth::Transaction(_value, m_gasPrice, m_gas, _data, 0, KeyPair::create().sec())
: eth::Transaction(_value, m_gasPrice, m_gas, m_contractAddress, _data, 0, KeyPair::create().sec());
bytes transactionRLP = t.rlp();
@@ -137,7 +137,7 @@ private:
else
{
BOOST_REQUIRE(m_state.addressHasCode(m_contractAddress));
- BOOST_REQUIRE(!executive.call(m_contractAddress, m_sender, _value, m_gasPrice, &_data, m_gas, m_sender));
+ BOOST_REQUIRE(!executive.call(m_contractAddress, m_contractAddress, m_sender, _value, m_gasPrice, &_data, m_gas, m_sender));
}
BOOST_REQUIRE(executive.go());
m_state.noteSending(m_sender);