good morning!!!!

Skip to content
Snippets Groups Projects
Commit 0ce9003b authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Fix for creating a tx from an unknown account

parent 2bbc2043
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, sc
tx = ethchain.NewTransactionMessage(hash, value, gas, gasPrice, data)
}
acc := lib.stateManager.TransState().GetStateObject(keyPair.Address())
acc := lib.stateManager.TransState().GetOrNewStateObject(keyPair.Address())
tx.Nonce = acc.Nonce
acc.Nonce += 1
lib.stateManager.TransState().UpdateStateObject(acc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment