Skip to content

Commit

Permalink
run goimports. remove unused return value from Selfdestruct6780
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed Jul 13, 2023
1 parent 7e9a8b3 commit 35fcb12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/state/state_object.go
Expand Up @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions core/state/statedb.go
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/vm/interface.go
Expand Up @@ -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.
Expand Down

0 comments on commit 35fcb12

Please sign in to comment.