|
|
@ -102,7 +102,7 @@ func (self *StateTransition) BuyGas() error { |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
|
self.state.UpdateStateObject(coinbase) |
|
|
|
//self.state.UpdateStateObject(coinbase)
|
|
|
|
|
|
|
|
|
|
|
|
self.AddGas(self.tx.Gas) |
|
|
|
self.AddGas(self.tx.Gas) |
|
|
|
sender.SubAmount(self.tx.GasValue()) |
|
|
|
sender.SubAmount(self.tx.GasValue()) |
|
|
@ -177,7 +177,6 @@ func (self *StateTransition) TransitionState() (err error) { |
|
|
|
|
|
|
|
|
|
|
|
// Process the init code and create 'valid' contract
|
|
|
|
// Process the init code and create 'valid' contract
|
|
|
|
if tx.CreatesContract() { |
|
|
|
if tx.CreatesContract() { |
|
|
|
//fmt.Println(Disassemble(receiver.Init()))
|
|
|
|
|
|
|
|
// Evaluate the initialization script
|
|
|
|
// Evaluate the initialization script
|
|
|
|
// and use the return value as the
|
|
|
|
// and use the return value as the
|
|
|
|
// script section for the state object.
|
|
|
|
// script section for the state object.
|
|
|
|