diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-08-10 22:47:42 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-08-10 22:47:42 +0800 |
commit | df39c9962926c2950d0b7ac10e3c9a4189bf2d55 (patch) | |
tree | 833d86d8cb7f516142ee30c14803956cfbc567b9 | |
parent | ec57873f58c5d663a0e233246ab4bb8cbc9bc0f2 (diff) | |
download | dexon-solidity-df39c9962926c2950d0b7ac10e3c9a4189bf2d55.tar.gz dexon-solidity-df39c9962926c2950d0b7ac10e3c9a4189bf2d55.tar.zst dexon-solidity-df39c9962926c2950d0b7ac10e3c9a4189bf2d55.zip |
compile code in accounts when importing state
-rw-r--r-- | TestHelper.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index 39977975..0b9f1e0e 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -121,10 +121,21 @@ bytes ImportTest::executeTest() { ExecutionResult res; eth::State tmpState = m_statePre; + try + { + std::pair<ExecutionResult, TransactionReceipt> execOut = m_statePre.execute(m_envInfo, m_transaction); + res = execOut.first; + m_logs = execOut.second.log(); + } + catch (Exception const& _e) + { + cnote << "Exception: " << diagnostic_information(_e); + } + catch (std::exception const& _e) + { + cnote << "state execution exception: " << _e.what(); + } - std::pair<ExecutionResult, TransactionReceipt> execOut = m_statePre.execute(m_envInfo, m_transaction); - res = execOut.first; - m_logs = execOut.second.log(); m_statePre.commit(); m_statePost = m_statePre; m_statePre = tmpState; |