aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-07-01 22:09:43 +0800
committerzelig <viktor.tron@gmail.com>2014-07-01 22:09:43 +0800
commitff5703fd9b089de67811af61de05637c62dc7a2c (patch)
tree0c12e6fe9e0214989401bb47a6d4503081fd47bc /ethchain
parent89630d2826300d119f2cdc9f8af6c94926f478a2 (diff)
downloadgo-tangerine-ff5703fd9b089de67811af61de05637c62dc7a2c.tar.gz
go-tangerine-ff5703fd9b089de67811af61de05637c62dc7a2c.tar.zst
go-tangerine-ff5703fd9b089de67811af61de05637c62dc7a2c.zip
ethutil -> ethtrie.NewTrie
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/state_object.go2
-rw-r--r--ethchain/state_transition.go3
2 files changed, 3 insertions, 2 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go
index 7c9430af2..35928c899 100644
--- a/ethchain/state_object.go
+++ b/ethchain/state_object.go
@@ -51,7 +51,7 @@ func MakeContract(tx *Transaction, state *State) *StateObject {
func NewStateObject(addr []byte) *StateObject {
object := &StateObject{address: addr, Amount: new(big.Int), gasPool: new(big.Int)}
- object.state = NewState(ethutil.NewTrie(ethutil.Config.Db, ""))
+ object.state = NewState(ethtrie.NewTrie(ethutil.Config.Db, ""))
return object
}
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go
index 94c3de3d9..c382bcd60 100644
--- a/ethchain/state_transition.go
+++ b/ethchain/state_transition.go
@@ -3,6 +3,7 @@ package ethchain
import (
"bytes"
"fmt"
+ "github.com/ethereum/eth-go/ethtrie"
"github.com/ethereum/eth-go/ethutil"
"math/big"
)
@@ -268,7 +269,7 @@ func Call(vm *Vm, closure *Closure, data []byte) (ret []byte, err error, deepErr
var (
context = closure.object
trie = context.state.trie
- trie2 = ethutil.NewTrie(ethutil.Config.Db, "")
+ trie2 = ethtrie.NewTrie(ethutil.Config.Db, "")
)
trie.NewIterator().Each(func(key string, v *ethutil.Value) {