refactor ethutil/trie to ethtrie

This commit is contained in:
zelig
2014-06-29 16:26:58 +01:00
parent 4be3521727
commit 707d413761
6 changed files with 33 additions and 30 deletions

View File

@ -1,6 +1,7 @@
package ethchain
import (
"github.com/ethereum/eth-go/ethtrie"
"github.com/ethereum/eth-go/ethutil"
"math/big"
)
@ -12,7 +13,7 @@ import (
// * Accounts
type State struct {
// The trie for this structure
trie *ethutil.Trie
trie *ethtrie.Trie
stateObjects map[string]*StateObject
@ -20,7 +21,7 @@ type State struct {
}
// Create a new state from a given trie
func NewState(trie *ethutil.Trie) *State {
func NewState(trie *ethtrie.Trie) *State {
return &State{trie: trie, stateObjects: make(map[string]*StateObject), manifest: NewManifest()}
}