good morning!!!!

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

Make sure that the object exists

parent 55e55826
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ func (self *XEth) Transact(key *crypto.KeyPair, to []byte, value, gas, price *et
// Do some pre processing for our "pre" events and hooks
block := self.chainManager.NewBlock(key.Address())
coinbase := state.GetStateObject(key.Address())
coinbase := state.GetOrNewStateObject(key.Address())
coinbase.SetGasPool(block.GasLimit())
self.blockManager.ApplyTransactions(coinbase, state, block, types.Transactions{tx}, true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment