From 9d035eb3176d72c3f59e2ac5d80d4a61334421eb Mon Sep 17 00:00:00 2001 From: Christoph Jentzsch Date: Wed, 5 Nov 2014 21:55:10 +0100 Subject: [PATCH] style --- test/TestHelper.h | 6 +++--- test/vm.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/TestHelper.h b/test/TestHelper.h index d7ffe5cb5..622b83ac4 100644 --- a/test/TestHelper.h +++ b/test/TestHelper.h @@ -66,9 +66,9 @@ private: // helping functions u256 toInt(json_spirit::mValue const& _v); byte toByte(json_spirit::mValue const& _v); -bytes importCode(json_spirit::mObject &_o); -bytes importData(json_spirit::mObject &_o); -void checkOutput(bytes const& _output, json_spirit::mObject &_o); +bytes importCode(json_spirit::mObject& _o); +bytes importData(json_spirit::mObject& _o); +void checkOutput(bytes const& _output, json_spirit::mObject& _o); void checkStorage(std::map _expectedStore, std::map _resultStore, Address _expectedAddr); void executeTests(const std::string& _name, const std::string& _testPathAppendix, std::function doTests); std::string getTestPath(); diff --git a/test/vm.cpp b/test/vm.cpp index acede8001..c6799daac 100644 --- a/test/vm.cpp +++ b/test/vm.cpp @@ -231,7 +231,7 @@ void FakeExtVM::importCallCreates(mArray& _callcreates) BOOST_REQUIRE(tx.count("value") > 0); BOOST_REQUIRE(tx.count("destination") > 0); BOOST_REQUIRE(tx.count("gasLimit") > 0); -Transaction t = tx["destination"].get_str().empty() ? + Transaction t = tx["destination"].get_str().empty() ? Transaction(toInt(tx["value"]), 0, toInt(tx["gasLimit"]), data.toBytes()) : Transaction(toInt(tx["value"]), 0, toInt(tx["gasLimit"]), Address(tx["destination"].get_str()), data.toBytes()); callcreates.push_back(t);