diff options
author | zelig <viktor.tron@gmail.com> | 2014-07-01 22:03:02 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-07-01 22:03:02 +0800 |
commit | 89630d2826300d119f2cdc9f8af6c94926f478a2 (patch) | |
tree | aa2addd061e2d2a8f3cdc0821260409f31ac3b09 /ethchain/state_object.go | |
parent | 12972b4b65a303dc3f9e135b0e2d97f8b7a661e2 (diff) | |
parent | 550407b0ec78b7026737d1abe28127da8c0c9063 (diff) | |
download | go-tangerine-89630d2826300d119f2cdc9f8af6c94926f478a2.tar go-tangerine-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.gz go-tangerine-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.bz2 go-tangerine-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.lz go-tangerine-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.xz go-tangerine-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.zst go-tangerine-89630d2826300d119f2cdc9f8af6c94926f478a2.zip |
merge upstream
Diffstat (limited to 'ethchain/state_object.go')
-rw-r--r-- | ethchain/state_object.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go index e55540153..7c9430af2 100644 --- a/ethchain/state_object.go +++ b/ethchain/state_object.go @@ -50,7 +50,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 { |