Browse Source

fixed spaces in WebThreeStubServer

cl-refactor
Marek Kotewicz 11 years ago
parent
commit
55b9949ddd
  1. 14
      libethrpc/WebThreeStubServer.cpp

14
libethrpc/WebThreeStubServer.cpp

@ -382,18 +382,18 @@ std::string WebThreeStubServer::toFixed(const double &s)
std::string WebThreeStubServer::transact(const Json::Value &json) std::string WebThreeStubServer::transact(const Json::Value &json)
{ {
std::string ret; std::string ret;
if (!client()) if (!client())
return ret; return ret;
TransactionJS t = toTransaction(json); TransactionJS t = toTransaction(json);
if (!t.from && m_keys.size()) if (!t.from && m_keys.size())
{ {
auto b = m_keys.front(); auto b = m_keys.front();
for (auto a: m_keys) for (auto a: m_keys)
if (client()->balanceAt(KeyPair(a).address()) > client()->balanceAt(KeyPair(b).address())) if (client()->balanceAt(KeyPair(a).address()) > client()->balanceAt(KeyPair(b).address()))
b = a; b = a;
t.from = b.secret(); t.from = b.secret();
} }
if (!t.gasPrice) if (!t.gasPrice)
t.gasPrice = 10 * dev::eth::szabo; t.gasPrice = 10 * dev::eth::szabo;
if (!t.gas) if (!t.gas)

Loading…
Cancel
Save