diff options
author | Christian <c@ethdev.com> | 2015-01-29 08:29:43 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-29 08:29:43 +0800 |
commit | f054a4af7b56559dccf7406b34b38e05c2b54d5a (patch) | |
tree | 8cd24b00494436dc2909432b61b2b19f1b5278f8 /solidityExecutionFramework.h | |
parent | 4e67aa413e16a00c5056eb388bcf3bb011a7be57 (diff) | |
download | dexon-solidity-f054a4af7b56559dccf7406b34b38e05c2b54d5a.tar.gz dexon-solidity-f054a4af7b56559dccf7406b34b38e05c2b54d5a.tar.zst dexon-solidity-f054a4af7b56559dccf7406b34b38e05c2b54d5a.zip |
Exclude standard contracts by default.
Diffstat (limited to 'solidityExecutionFramework.h')
-rw-r--r-- | solidityExecutionFramework.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solidityExecutionFramework.h b/solidityExecutionFramework.h index 208e9ae8..7dad9ad4 100644 --- a/solidityExecutionFramework.h +++ b/solidityExecutionFramework.h @@ -45,8 +45,7 @@ public: bytes const& compileAndRun(std::string const& _sourceCode, u256 const& _value = 0, std::string const& _contractName = "") { - // add standard sources only if contract name is given - dev::solidity::CompilerStack compiler(!_contractName.empty()); + dev::solidity::CompilerStack compiler(m_addStandardSources); try { compiler.addSource("", _sourceCode); @@ -175,6 +174,7 @@ private: protected: bool m_optimize = false; + bool m_addStandardSources = false; Address m_sender; Address m_contractAddress; eth::State m_state; |