diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-01-10 05:53:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 05:53:17 +0800 |
commit | 02b67558e8eaa7b34a28b8dd0223824bbbb52349 (patch) | |
tree | 33bbc5057d4546d93d6d0e92b90eef19b49abb83 /core/state | |
parent | 91c8f87fb128c070b6c557a142e25d4428c96487 (diff) | |
parent | b9b3efb09f9281a5859646d2dcf36b5813132efb (diff) | |
download | dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.tar dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.tar.gz dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.tar.bz2 dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.tar.lz dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.tar.xz dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.tar.zst dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.zip |
Merge pull request #3535 from fjl/all-ineffassign
all: fix ineffectual assignments
Diffstat (limited to 'core/state')
-rw-r--r-- | core/state/managed_state_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/state/managed_state_test.go b/core/state/managed_state_test.go index d9c232ebb..0a3be9f5a 100644 --- a/core/state/managed_state_test.go +++ b/core/state/managed_state_test.go @@ -88,12 +88,12 @@ func TestRemoteNonceChange(t *testing.T) { nn[i] = true } account.nonces = append(account.nonces, nn...) - nonce := ms.NewNonce(addr) + ms.NewNonce(addr) ms.StateDB.stateObjects[addr].data.Nonce = 200 - nonce = ms.NewNonce(addr) + nonce := ms.NewNonce(addr) if nonce != 200 { - t.Error("expected nonce after remote update to be", 201, "got", nonce) + t.Error("expected nonce after remote update to be", 200, "got", nonce) } ms.NewNonce(addr) ms.NewNonce(addr) @@ -101,7 +101,7 @@ func TestRemoteNonceChange(t *testing.T) { ms.StateDB.stateObjects[addr].data.Nonce = 200 nonce = ms.NewNonce(addr) if nonce != 204 { - t.Error("expected nonce after remote update to be", 201, "got", nonce) + t.Error("expected nonce after remote update to be", 204, "got", nonce) } } |