This commit is contained in:
obscuren
2014-06-30 13:09:04 +02:00
parent 5a86892ecb
commit 8ddd4c4c52
4 changed files with 59 additions and 2 deletions

View File

@ -48,7 +48,10 @@ func MakeContract(tx *Transaction, state *State) *StateObject {
}
func NewStateObject(addr []byte) *StateObject {
return &StateObject{address: addr, Amount: new(big.Int), gasPool: new(big.Int)}
object := &StateObject{address: addr, Amount: new(big.Int), gasPool: new(big.Int)}
object.state = NewState(ethutil.NewTrie(ethutil.Config.Db, ""))
return object
}
func NewContract(address []byte, Amount *big.Int, root []byte) *StateObject {