aboutsummaryrefslogtreecommitdiffstats
path: root/core/state/statedb_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-10-06 04:22:31 +0800
committerFelix Lange <fjl@twurst.com>2016-10-06 21:32:17 +0800
commit90fce8bfa621f8c3be6663d62740783949111ff1 (patch)
treeae93f2f9f637f0530eb0cedc354871ca377717ad /core/state/statedb_test.go
parent1f1ea18b5414bea22332bb4fce53cc95b5c6a07d (diff)
downloaddexon-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.go6
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))