aboutsummaryrefslogtreecommitdiffstats
path: root/ethstate/state.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.go
parent3debeb7236d2c8474fa9049cc91dc26bf1040b3f (diff)
downloaddexon-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.gz
dexon-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.zst
dexon-03ce15df4c7ef51d4373233ab5c3766282b31771.zip
ethstate.NewState => ethstate.New
Diffstat (limited to 'ethstate/state.go')
-rw-r--r--ethstate/state.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethstate/state.go b/ethstate/state.go
index 693a591c3..10bcf6335 100644
--- a/ethstate/state.go
+++ b/ethstate/state.go
@@ -26,7 +26,7 @@ type State struct {
}
// Create a new state from a given trie
-func NewState(trie *ethtrie.Trie) *State {
+func New(trie *ethtrie.Trie) *State {
return &State{Trie: trie, stateObjects: make(map[string]*StateObject), manifest: NewManifest()}
}
@@ -128,7 +128,7 @@ func (s *State) Cmp(other *State) bool {
func (self *State) Copy() *State {
if self.Trie != nil {
- state := NewState(self.Trie.Copy())
+ state := New(self.Trie.Copy())
for k, stateObject := range self.stateObjects {
state.stateObjects[k] = stateObject.Copy()
}