aboutsummaryrefslogtreecommitdiffstats
path: root/core/state
diff options
context:
space:
mode:
authorLeif Jurvetson <leijurv@gmail.com>2016-03-16 02:08:18 +0800
committerLeif Jurvetson <leijurv@gmail.com>2016-03-16 02:08:18 +0800
commitb7bb2d8589ddfb4f893c881edb6422bacdb6e53b (patch)
tree39ab548f4995eab28d26274d0d40cfd7be036915 /core/state
parente189fb839c688b418b43ad6533111c246c109a93 (diff)
downloadgo-tangerine-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.tar.gz
go-tangerine-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.tar.zst
go-tangerine-b7bb2d8589ddfb4f893c881edb6422bacdb6e53b.zip
core: various typos
Diffstat (limited to 'core/state')
-rw-r--r--core/state/managed_state.go2
-rw-r--r--core/state/state_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/state/managed_state.go b/core/state/managed_state.go
index 4df047979..f8e2f2b87 100644
--- a/core/state/managed_state.go
+++ b/core/state/managed_state.go
@@ -82,7 +82,7 @@ func (ms *ManagedState) NewNonce(addr common.Address) uint64 {
return uint64(len(account.nonces)-1) + account.nstart
}
-// GetNonce returns the canonical nonce for the managed or unmanged account
+// GetNonce returns the canonical nonce for the managed or unmanaged account
func (ms *ManagedState) GetNonce(addr common.Address) uint64 {
ms.mu.RLock()
defer ms.mu.RUnlock()
diff --git a/core/state/state_test.go b/core/state/state_test.go
index 7ce341c36..a45eddd0d 100644
--- a/core/state/state_test.go
+++ b/core/state/state_test.go
@@ -102,7 +102,7 @@ func (s *StateSuite) TestSnapshot(c *checker.C) {
data1 := common.BytesToHash([]byte{42})
data2 := common.BytesToHash([]byte{43})
- // set inital state object value
+ // set initial state object value
s.state.SetState(stateobjaddr, storageaddr, data1)
// get snapshot of current state
snapshot := s.state.Copy()