Browse Source

Fix sendTransaction in mix.

cl-refactor
Gav Wood 10 years ago
parent
commit
3472ae930b
  1. 3
      mix/MixClient.cpp

3
mix/MixClient.cpp

@ -307,7 +307,8 @@ pair<h256, Address> MixClient::submitTransaction(eth::TransactionSkeleton const&
{
WriteGuard l(x_state);
TransactionSkeleton ts = _ts;
ts.nonce = m_state.transactionsFrom(toAddress(_secret));
ts.from = toAddress(_secret);
ts.nonce = m_state.transactionsFrom(ts.from);
eth::Transaction t(ts, _secret);
executeTransaction(t, m_state, false, _gasAuto, _secret);
return make_pair(t.sha3(), toAddress(ts.from, ts.nonce));

Loading…
Cancel
Save