aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionFramework.h
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-06-15 18:18:00 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-02 18:56:33 +0800
commit334c023c7231810f28ca5ea04f14df3f722cea07 (patch)
treea64e19e9388e1ddc0381cc464cf4eceb19b4e339 /test/ExecutionFramework.h
parenta5608b31a759031377ec91300ad7a470d48bb1d2 (diff)
downloaddexon-solidity-334c023c7231810f28ca5ea04f14df3f722cea07.tar.gz
dexon-solidity-334c023c7231810f28ca5ea04f14df3f722cea07.tar.zst
dexon-solidity-334c023c7231810f28ca5ea04f14df3f722cea07.zip
Determine transaction status in RPC sessions.
Diffstat (limited to 'test/ExecutionFramework.h')
-rw-r--r--test/ExecutionFramework.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ExecutionFramework.h b/test/ExecutionFramework.h
index 4525cbf9..cdbec81d 100644
--- a/test/ExecutionFramework.h
+++ b/test/ExecutionFramework.h
@@ -72,6 +72,7 @@ public:
)
{
compileAndRunWithoutCheck(_sourceCode, _value, _contractName, _arguments, _libraryAddresses);
+ BOOST_REQUIRE(m_transactionSuccessful);
BOOST_REQUIRE(!m_output.empty());
return m_output;
}
@@ -234,6 +235,7 @@ protected:
unsigned m_optimizeRuns = 200;
bool m_optimize = false;
bool m_showMessages = false;
+ bool m_transactionSuccessful = true;
Address m_sender;
Address m_contractAddress;
u256 m_blockNumber;