Skip to content

Commit

Permalink
evmc: Rename SuicideRefundGas -> SelfdestructRefundGas
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Aug 14, 2019
1 parent 92c8dbb commit ef8eb8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/evmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (host *hostContext) GetCode(addr common.Address) []byte {
func (host *hostContext) Selfdestruct(addr common.Address, beneficiary common.Address) {
db := host.env.StateDB
if !db.HasSuicided(addr) {
db.AddRefund(params.SuicideRefundGas)
db.AddRefund(params.SelfdestructRefundGas)
}
db.AddBalance(beneficiary, db.GetBalance(addr))
db.Suicide(addr)
Expand Down

0 comments on commit ef8eb8c

Please sign in to comment.