diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-16 17:14:01 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-16 17:14:01 +0800 |
commit | 9f62d441a7c785b88f89d52643a9deaa822af15e (patch) | |
tree | 66510d5afe5d931e50e652a9cdc135fbc3fc9e3f /ethchain/state_transition.go | |
parent | b836267401b731a2cd17c4866a9727b4a05ec124 (diff) | |
download | go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.gz go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.bz2 go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.lz go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.xz go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.zst go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.zip |
Moved gas limit err check to buy gas
Diffstat (limited to 'ethchain/state_transition.go')
-rw-r--r-- | ethchain/state_transition.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go index 94546e556..76936aa7c 100644 --- a/ethchain/state_transition.go +++ b/ethchain/state_transition.go @@ -32,8 +32,8 @@ type StateTransition struct { cb, rec, sen *StateObject } -func NewStateTransition(coinbase []byte, tx *Transaction, state *State, block *Block) *StateTransition { - return &StateTransition{coinbase, tx, new(big.Int), state, block, nil, nil, nil} +func NewStateTransition(coinbase *StateObject, tx *Transaction, state *State, block *Block) *StateTransition { + return &StateTransition{coinbase.Address(), tx, new(big.Int), state, block, coinbase, nil, nil} } func (self *StateTransition) Coinbase() *StateObject { |