aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_object.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-30 19:09:04 +0800
committerobscuren <geffobscura@gmail.com>2014-06-30 19:09:04 +0800
commit8ddd4c4c52eef9f382a321fa880adba4a1e35ee2 (patch)
tree0d9940dc0d58bad1a07e5bb41a69c3aedd6b199b /ethchain/state_object.go
parent5a86892ecbd68c3d466cb1ef282c4cb81300abce (diff)
downloadgo-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.tar.gz
go-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.tar.zst
go-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.zip
wip
Diffstat (limited to 'ethchain/state_object.go')
-rw-r--r--ethchain/state_object.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go
index 480b4055d..edac4f6dc 100644
--- a/ethchain/state_object.go
+++ b/ethchain/state_object.go
@@ -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 {