diff options
author | Gav Wood <g@ethdev.com> | 2015-08-12 17:58:05 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-08-12 17:58:05 +0800 |
commit | be1a5db1209e885ece547f10cb7ebca41cb8369d (patch) | |
tree | 4dd301a8bdd17b1ed3540c3f44ebc050e305de4e | |
parent | e572aa4f632a3a36887d76519e67afc286e5382b (diff) | |
parent | 0862040b47abac5d22a1c04e7a8690a2ae33e024 (diff) | |
download | dexon-solidity-be1a5db1209e885ece547f10cb7ebca41cb8369d.tar dexon-solidity-be1a5db1209e885ece547f10cb7ebca41cb8369d.tar.gz dexon-solidity-be1a5db1209e885ece547f10cb7ebca41cb8369d.tar.bz2 dexon-solidity-be1a5db1209e885ece547f10cb7ebca41cb8369d.tar.lz dexon-solidity-be1a5db1209e885ece547f10cb7ebca41cb8369d.tar.xz dexon-solidity-be1a5db1209e885ece547f10cb7ebca41cb8369d.tar.zst dexon-solidity-be1a5db1209e885ece547f10cb7ebca41cb8369d.zip |
Merge pull request #2777 from CJentzsch/fixStateTestsFilling
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 fa889be1..4a3de4dc 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; |