diff options
author | Felix Lange <fjl@twurst.com> | 2016-03-16 02:39:36 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-03-16 02:39:36 +0800 |
commit | 06fe6310a3ecf0be324b082ca83c015abe47fa8f (patch) | |
tree | a78847bed59a5fa7f75ff9a1705b0a6bb20d13d7 /core/state | |
parent | 066d30152088188cec782bb62844550332d6b142 (diff) | |
parent | b7bb2d8589ddfb4f893c881edb6422bacdb6e53b (diff) | |
download | dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.gz dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.bz2 dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.lz dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.xz dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.zst dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.zip |
Merge pull request #2351 from leijurv/patch-4
core: various typos
Diffstat (limited to 'core/state')
-rw-r--r-- | core/state/managed_state.go | 2 | ||||
-rw-r--r-- | core/state/state_test.go | 2 |
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() |