diff options
author | Christoph Jentzsch <jentzsch.software@gmail.com> | 2014-11-06 04:55:10 +0800 |
---|---|---|
committer | Christoph Jentzsch <jentzsch.software@gmail.com> | 2014-11-06 04:55:10 +0800 |
commit | 139668dea45f9ee13c889a94b2515dec86387b3c (patch) | |
tree | 672a42d0c5b926fbfd9ccd9d9c5c24b66b198a20 | |
parent | 2ce298bca59f5f2c3dfbb172c1f7b166ee1d0268 (diff) | |
download | dexon-solidity-139668dea45f9ee13c889a94b2515dec86387b3c.tar.gz dexon-solidity-139668dea45f9ee13c889a94b2515dec86387b3c.tar.zst dexon-solidity-139668dea45f9ee13c889a94b2515dec86387b3c.zip |
style
-rw-r--r-- | TestHelper.h | 6 | ||||
-rw-r--r-- | vm.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/TestHelper.h b/TestHelper.h index d7ffe5cb..622b83ac 100644 --- a/TestHelper.h +++ b/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<u256, u256> _expectedStore, std::map<u256, u256> _resultStore, Address _expectedAddr); void executeTests(const std::string& _name, const std::string& _testPathAppendix, std::function<void(json_spirit::mValue&, bool)> doTests); std::string getTestPath(); @@ -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); |