diff options
author | Bob Summerwill <bob@summerwill.net> | 2016-04-13 01:33:59 +0800 |
---|---|---|
committer | Bob Summerwill <bob@summerwill.net> | 2016-04-13 01:33:59 +0800 |
commit | 3ad5e821f25d9c389b29370705d4df5d1014b2bd (patch) | |
tree | 08dfa569a5330cb0a5f9ed6a53ae46fa409750a6 /test/libsolidity | |
parent | 539b392a6d996e6b697b28be710b157799793fbc (diff) | |
parent | 24120a726c10f14d1738f9527fa5a3b9145cac2b (diff) | |
download | dexon-solidity-3ad5e821f25d9c389b29370705d4df5d1014b2bd.tar dexon-solidity-3ad5e821f25d9c389b29370705d4df5d1014b2bd.tar.gz dexon-solidity-3ad5e821f25d9c389b29370705d4df5d1014b2bd.tar.bz2 dexon-solidity-3ad5e821f25d9c389b29370705d4df5d1014b2bd.tar.lz dexon-solidity-3ad5e821f25d9c389b29370705d4df5d1014b2bd.tar.xz dexon-solidity-3ad5e821f25d9c389b29370705d4df5d1014b2bd.tar.zst dexon-solidity-3ad5e821f25d9c389b29370705d4df5d1014b2bd.zip |
Merge pull request #491 from winsvega/sealengines
sealengines throught init function
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/solidityExecutionFramework.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/libsolidity/solidityExecutionFramework.h b/test/libsolidity/solidityExecutionFramework.h index a5549d5b..a7192aca 100644 --- a/test/libsolidity/solidityExecutionFramework.h +++ b/test/libsolidity/solidityExecutionFramework.h @@ -32,6 +32,8 @@ #include <libethereum/ChainParams.h> #include <libsolidity/interface/CompilerStack.h> #include <libsolidity/interface/Exceptions.h> +#include <libethcore/BasicAuthority.h> +#include <libethcore/SealEngine.h> namespace dev { @@ -45,6 +47,7 @@ class ExecutionFramework { public: ExecutionFramework(): + m_sealEngineInit(), m_sealEngine(eth::ChainParams().createSealEngine()), m_state(0) { @@ -236,6 +239,17 @@ public: }; private: + struct sealEngineInit + { + sealEngineInit() + { + dev::eth::BasicAuthority::init(); + dev::eth::NoProof::init(); + } + }; + + sealEngineInit m_sealEngineInit; + template <class CppFunction, class... Args> auto callCppAndEncodeResult(CppFunction const& _cppFunction, Args const&... _arguments) -> typename std::enable_if<std::is_void<decltype(_cppFunction(_arguments...))>::value, bytes>::type |