aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_transition.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-16 17:14:01 +0800
committerobscuren <geffobscura@gmail.com>2014-06-16 17:14:01 +0800
commit9f62d441a7c785b88f89d52643a9deaa822af15e (patch)
tree66510d5afe5d931e50e652a9cdc135fbc3fc9e3f /ethchain/state_transition.go
parentb836267401b731a2cd17c4866a9727b4a05ec124 (diff)
downloadgo-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.go4
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 {