Browse Source

style

cl-refactor
CJentzsch 10 years ago
parent
commit
c9a7593e07
  1. 4
      test/TestHelper.cpp

4
test/TestHelper.cpp

@ -266,14 +266,14 @@ void ImportTest::importTransaction(json_spirit::mObject& _o)
{ {
m_transaction = Transaction(transactionRLP.data(), CheckTransaction::Everything); m_transaction = Transaction(transactionRLP.data(), CheckTransaction::Everything);
} }
catch(InvalidSignature) catch (InvalidSignature)
{ {
// create unsigned transaction // create unsigned transaction
m_transaction = _o["to"].get_str().empty() ? m_transaction = _o["to"].get_str().empty() ?
Transaction(toInt(_o["value"]), toInt(_o["gasPrice"]), toInt(_o["gasLimit"]), importData(_o), toInt(_o["nonce"])) : Transaction(toInt(_o["value"]), toInt(_o["gasPrice"]), toInt(_o["gasLimit"]), importData(_o), toInt(_o["nonce"])) :
Transaction(toInt(_o["value"]), toInt(_o["gasPrice"]), toInt(_o["gasLimit"]), Address(_o["to"].get_str()), importData(_o), toInt(_o["nonce"])); Transaction(toInt(_o["value"]), toInt(_o["gasPrice"]), toInt(_o["gasLimit"]), Address(_o["to"].get_str()), importData(_o), toInt(_o["nonce"]));
} }
catch(Exception& _e) catch (Exception& _e)
{ {
cnote << "invalid transaction" << boost::diagnostic_information(_e); cnote << "invalid transaction" << boost::diagnostic_information(_e);
} }

Loading…
Cancel
Save