From 55b9949ddd2deb041d1182e256c5dac705c8c5c0 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Thu, 16 Oct 2014 19:30:37 +0200 Subject: [PATCH] fixed spaces in WebThreeStubServer --- libethrpc/WebThreeStubServer.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libethrpc/WebThreeStubServer.cpp b/libethrpc/WebThreeStubServer.cpp index ee1e7d1e4..5b664e270 100644 --- a/libethrpc/WebThreeStubServer.cpp +++ b/libethrpc/WebThreeStubServer.cpp @@ -382,18 +382,18 @@ std::string WebThreeStubServer::toFixed(const double &s) std::string WebThreeStubServer::transact(const Json::Value &json) { - std::string ret; - if (!client()) - return ret; - TransactionJS t = toTransaction(json); - if (!t.from && m_keys.size()) - { + std::string ret; + if (!client()) + return ret; + TransactionJS t = toTransaction(json); + if (!t.from && m_keys.size()) + { auto b = m_keys.front(); for (auto a: m_keys) if (client()->balanceAt(KeyPair(a).address()) > client()->balanceAt(KeyPair(b).address())) b = a; t.from = b.secret(); - } + } if (!t.gasPrice) t.gasPrice = 10 * dev::eth::szabo; if (!t.gas)