aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/instructions.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/vm/instructions.go
parent1f1ea18b5414bea22332bb4fce53cc95b5c6a07d (diff)
downloadgo-tangerine-90fce8bfa621f8c3be6663d62740783949111ff1.tar.gz
go-tangerine-90fce8bfa621f8c3be6663d62740783949111ff1.tar.zst
go-tangerine-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/vm/instructions.go')
-rw-r--r--core/vm/instructions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/instructions.go b/core/vm/instructions.go
index 849a8463c..79aee60d2 100644
--- a/core/vm/instructions.go
+++ b/core/vm/instructions.go
@@ -614,7 +614,7 @@ func opSuicide(instr instruction, pc *uint64, env Environment, contract *Contrac
balance := env.Db().GetBalance(contract.Address())
env.Db().AddBalance(common.BigToAddress(stack.pop()), balance)
- env.Db().Delete(contract.Address())
+ env.Db().Suicide(contract.Address())
}
// following functions are used by the instruction jump table