From e48fd2ef7ea216862b9289130cc1a39af5da9914 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 18 Mar 2015 12:56:50 +0100 Subject: [PATCH] Extensive pathway for reporting transaction execution results. --- checkRandomStateTest.cpp | 2 +- createRandomStateTest.cpp | 2 +- state.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/checkRandomStateTest.cpp b/checkRandomStateTest.cpp index 17e785f60..0fa7233b4 100644 --- a/checkRandomStateTest.cpp +++ b/checkRandomStateTest.cpp @@ -87,7 +87,7 @@ bool doStateTest(mValue& _v) try { - theState.execute(lastHashes(importer.m_environment.currentBlock.number), tx, &output); + output = theState.execute(lastHashes(importer.m_environment.currentBlock.number), tx).output; } catch (Exception const& _e) { diff --git a/createRandomStateTest.cpp b/createRandomStateTest.cpp index 13b622bb1..c03deca80 100644 --- a/createRandomStateTest.cpp +++ b/createRandomStateTest.cpp @@ -162,7 +162,7 @@ void doStateTests(json_spirit::mValue& _v) try { - theState.execute(test::lastHashes(importer.m_environment.currentBlock.number), tx, &output); + output = theState.execute(test::lastHashes(importer.m_environment.currentBlock.number), tx).output; } catch (Exception const& _e) { diff --git a/state.cpp b/state.cpp index 162ae5f34..4ab59f7a1 100644 --- a/state.cpp +++ b/state.cpp @@ -63,7 +63,7 @@ void doStateTests(json_spirit::mValue& v, bool _fillin) try { Listener::ExecTimeGuard guard{i.first}; - theState.execute(lastHashes(importer.m_environment.currentBlock.number), tx, &output); + output = theState.execute(lastHashes(importer.m_environment.currentBlock.number), tx).output; } catch (Exception const& _e) {