From 923e452846241f9f97b7fb0dc3351c0c479089b6 Mon Sep 17 00:00:00 2001 From: winsvega Date: Thu, 2 Apr 2015 18:33:28 +0300 Subject: Check State Style Changes --- TestHelper.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'TestHelper.h') diff --git a/TestHelper.h b/TestHelper.h index 81251649..04ca95be 100644 --- a/TestHelper.h +++ b/TestHelper.h @@ -99,8 +99,7 @@ namespace test struct ImportStateOptions { - ImportStateOptions():m_bHasBalance(false), m_bHasNonce(false), m_bHasCode(false), m_bHasStorage(false) {} - ImportStateOptions(bool _bSetAll):m_bHasBalance(_bSetAll), m_bHasNonce(_bSetAll), m_bHasCode(_bSetAll), m_bHasStorage(_bSetAll) {} + ImportStateOptions(bool _bSetAll = false):m_bHasBalance(_bSetAll), m_bHasNonce(_bSetAll), m_bHasCode(_bSetAll), m_bHasStorage(_bSetAll) {} bool isAllSet() {return m_bHasBalance && m_bHasNonce && m_bHasCode && m_bHasStorage;} bool m_bHasBalance; bool m_bHasNonce; @@ -121,8 +120,7 @@ public: void importTransaction(json_spirit::mObject& _o); void exportTest(bytes const& _output, eth::State const& _statePost); - static void checkExpectedState(eth::State const& _stateExpect, eth::State const& _statePost, WhenError _throw = WhenError::Throw); - static void checkExpectedState(eth::State const& _stateExpect, eth::State const& _statePost, stateOptionsMap const& _expectedStateOptions, WhenError _throw = WhenError::Throw); + static void checkExpectedState(eth::State const& _stateExpect, eth::State const& _statePost, stateOptionsMap const _expectedStateOptions = stateOptionsMap(), WhenError _throw = WhenError::Throw); eth::State m_statePre; eth::State m_statePost; -- cgit