diff --git a/core/state/state_object.go b/core/state/state_object.go index 8d474c4e00ae7..1539db14b9468 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -80,7 +80,7 @@ type stateObject struct { dirtyCode bool // true if the code was updated suicided bool deleted bool - created bool // true if the object was created in the current transaction + created bool // true if the object was created in the current transaction } // empty returns whether the account is considered empty. diff --git a/core/state/statedb.go b/core/state/statedb.go index 3ec4181998999..77babb2d8bc29 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -474,16 +474,15 @@ func (s *StateDB) Suicide(addr common.Address) bool { return true } -func (s *StateDB) Selfdestruct6780(addr common.Address) bool { +func (s *StateDB) Selfdestruct6780(addr common.Address) { stateObject := s.getStateObject(addr) if stateObject == nil { - return false + return } if stateObject.created { s.Suicide(addr) } - return true } // SetTransientState sets transient storage for a given account. It diff --git a/core/vm/interface.go b/core/vm/interface.go index 4212d429f384d..97442786092d8 100644 --- a/core/vm/interface.go +++ b/core/vm/interface.go @@ -54,7 +54,7 @@ type StateDB interface { Suicide(common.Address) bool HasSuicided(common.Address) bool - Selfdestruct6780(common.Address) bool + Selfdestruct6780(common.Address) // Exist reports whether the given account exists in state. // Notably this should also return true for suicided accounts.