diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-08-06 06:14:45 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-08-06 06:14:45 +0800 |
commit | 4626890913b9639c886544cd38863b3ecd116ddc (patch) | |
tree | c234322e6dc1963c03a420d0da37617fb8d50633 /libsolidity/solidityExecutionFramework.h | |
parent | e0863fbd27ae087e3afea94179274dbd29811f66 (diff) | |
download | dexon-solidity-4626890913b9639c886544cd38863b3ecd116ddc.tar dexon-solidity-4626890913b9639c886544cd38863b3ecd116ddc.tar.gz dexon-solidity-4626890913b9639c886544cd38863b3ecd116ddc.tar.bz2 dexon-solidity-4626890913b9639c886544cd38863b3ecd116ddc.tar.lz dexon-solidity-4626890913b9639c886544cd38863b3ecd116ddc.tar.xz dexon-solidity-4626890913b9639c886544cd38863b3ecd116ddc.tar.zst dexon-solidity-4626890913b9639c886544cd38863b3ecd116ddc.zip |
update test to new Block/State refactoring - credit to winsvega and chriseth
Diffstat (limited to 'libsolidity/solidityExecutionFramework.h')
-rw-r--r-- | libsolidity/solidityExecutionFramework.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/solidityExecutionFramework.h b/libsolidity/solidityExecutionFramework.h index 58099235..c6686883 100644 --- a/libsolidity/solidityExecutionFramework.h +++ b/libsolidity/solidityExecutionFramework.h @@ -44,7 +44,6 @@ public: ExecutionFramework() { g_logVerbosity = 0; - m_state.resetCurrent(); } bytes const& compileAndRunWithoutCheck( @@ -185,7 +184,7 @@ protected: 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::EnvInfo(), 0); + eth::Executive executive(m_state, m_envInfo, 0); eth::ExecutionResult res; executive.setResultRecipient(res); eth::Transaction t = @@ -226,6 +225,7 @@ protected: dev::solidity::CompilerStack m_compiler; Address m_sender; Address m_contractAddress; + eth::EnvInfo m_envInfo; eth::State m_state; u256 const m_gasPrice = 100 * eth::szabo; u256 const m_gas = 100000000; |