diff options
author | Gav Wood <i@gavwood.com> | 2015-11-20 07:06:02 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-11-20 07:06:02 +0800 |
commit | 9997aac1637727d735e1c474da6ecf9d98f072cf (patch) | |
tree | 93cd80574ef7610c8ebd525b435987cb64842edf /test | |
parent | 938b6793f1a555d8e98e949c8fd2a6838f0d6c43 (diff) | |
download | dexon-solidity-9997aac1637727d735e1c474da6ecf9d98f072cf.tar dexon-solidity-9997aac1637727d735e1c474da6ecf9d98f072cf.tar.gz dexon-solidity-9997aac1637727d735e1c474da6ecf9d98f072cf.tar.bz2 dexon-solidity-9997aac1637727d735e1c474da6ecf9d98f072cf.tar.lz dexon-solidity-9997aac1637727d735e1c474da6ecf9d98f072cf.tar.xz dexon-solidity-9997aac1637727d735e1c474da6ecf9d98f072cf.tar.zst dexon-solidity-9997aac1637727d735e1c474da6ecf9d98f072cf.zip |
Fix solidity tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/solidityExecutionFramework.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/libsolidity/solidityExecutionFramework.h b/test/libsolidity/solidityExecutionFramework.h index 64faf7b6..a5549d5b 100644 --- a/test/libsolidity/solidityExecutionFramework.h +++ b/test/libsolidity/solidityExecutionFramework.h @@ -26,8 +26,10 @@ #include <tuple> #include "../TestHelper.h" #include <libethcore/ABI.h> +#include <libethcore/SealEngine.h> #include <libethereum/State.h> #include <libethereum/Executive.h> +#include <libethereum/ChainParams.h> #include <libsolidity/interface/CompilerStack.h> #include <libsolidity/interface/Exceptions.h> @@ -43,6 +45,7 @@ class ExecutionFramework { public: ExecutionFramework(): + m_sealEngine(eth::ChainParams().createSealEngine()), m_state(0) { if (g_logVerbosity != -1) @@ -251,7 +254,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, m_envInfo, 0); + eth::Executive executive(m_state, m_envInfo, m_sealEngine.get()); eth::ExecutionResult res; executive.setResultRecipient(res); eth::Transaction t = @@ -286,6 +289,7 @@ protected: m_logs = executive.logs(); } + std::unique_ptr<eth::SealEngineFace> m_sealEngine; size_t m_optimizeRuns = 200; bool m_optimize = false; bool m_addStandardSources = false; |