diff options
author | Felix Lange <fjl@twurst.com> | 2016-10-06 04:22:31 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-10-06 21:32:17 +0800 |
commit | 90fce8bfa621f8c3be6663d62740783949111ff1 (patch) | |
tree | ae93f2f9f637f0530eb0cedc354871ca377717ad /core/state/statedb_test.go | |
parent | 1f1ea18b5414bea22332bb4fce53cc95b5c6a07d (diff) | |
download | dexon-90fce8bfa621f8c3be6663d62740783949111ff1.tar.gz dexon-90fce8bfa621f8c3be6663d62740783949111ff1.tar.zst dexon-90fce8bfa621f8c3be6663d62740783949111ff1.zip |
core/state: rename Delete/IsDeleted to Suicide/HasSuicided
The delete/remove naming has caused endless confusion in the past.
Diffstat (limited to 'core/state/statedb_test.go')
-rw-r--r-- | core/state/statedb_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index e236cb8f3..5d041c740 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -202,9 +202,9 @@ func newTestAction(addr common.Address, r *rand.Rand) testAction { }, }, { - name: "Delete", + name: "Suicide", fn: func(a testAction, s *StateDB) { - s.Delete(addr) + s.Suicide(addr) }, }, { @@ -323,7 +323,7 @@ func (test *snapshotTest) checkEqual(state, checkstate *StateDB) error { } // Check basic accessor methods. checkeq("Exist", state.Exist(addr), checkstate.Exist(addr)) - checkeq("IsDeleted", state.IsDeleted(addr), checkstate.IsDeleted(addr)) + checkeq("HasSuicided", state.HasSuicided(addr), checkstate.HasSuicided(addr)) checkeq("GetBalance", state.GetBalance(addr), checkstate.GetBalance(addr)) checkeq("GetNonce", state.GetNonce(addr), checkstate.GetNonce(addr)) checkeq("GetCode", state.GetCode(addr), checkstate.GetCode(addr)) |