aboutsummaryrefslogtreecommitdiffstats
path: root/ethstate/state_object.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-04 16:42:40 +0800
committerobscuren <geffobscura@gmail.com>2014-08-04 16:42:40 +0800
commit03ce15df4c7ef51d4373233ab5c3766282b31771 (patch)
tree8e2487308508223b47b9a91a6eaa53e657a89312 /ethstate/state_object.go
parent3debeb7236d2c8474fa9049cc91dc26bf1040b3f (diff)
downloaddexon-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.gz
dexon-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.zst
dexon-03ce15df4c7ef51d4373233ab5c3766282b31771.zip
ethstate.NewState => ethstate.New
Diffstat (limited to 'ethstate/state_object.go')
-rw-r--r--ethstate/state_object.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethstate/state_object.go b/ethstate/state_object.go
index 309e3e762..67d09edd8 100644
--- a/ethstate/state_object.go
+++ b/ethstate/state_object.go
@@ -62,7 +62,7 @@ func NewStateObject(addr []byte) *StateObject {
address := ethutil.Address(addr)
object := &StateObject{address: address, Balance: new(big.Int), gasPool: new(big.Int)}
- object.State = NewState(ethtrie.New(ethutil.Config.Db, ""))
+ object.State = New(ethtrie.New(ethutil.Config.Db, ""))
object.storage = make(Storage)
object.gasPool = new(big.Int)
@@ -72,7 +72,7 @@ func NewStateObject(addr []byte) *StateObject {
func NewContract(address []byte, balance *big.Int, root []byte) *StateObject {
contract := NewStateObject(address)
contract.Balance = balance
- contract.State = NewState(ethtrie.New(ethutil.Config.Db, string(root)))
+ contract.State = New(ethtrie.New(ethutil.Config.Db, string(root)))
return contract
}
@@ -300,7 +300,7 @@ func (c *StateObject) RlpDecode(data []byte) {
c.Nonce = decoder.Get(0).Uint()
c.Balance = decoder.Get(1).BigInt()
- c.State = NewState(ethtrie.New(ethutil.Config.Db, decoder.Get(2).Interface()))
+ c.State = New(ethtrie.New(ethutil.Config.Db, decoder.Get(2).Interface()))
c.storage = make(map[string]*ethutil.Value)
c.gasPool = new(big.Int)