Skip to content

Commit

Permalink
diffuse self-destruct
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield committed Mar 28, 2024
1 parent 66c69d7 commit 377c89c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions arbos/programs/programs.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ func (p Programs) ActivateProgram(evm *vm.EVM, address common.Address, debugMode
burner := p.programs.Burner()
time := evm.Context.Time

if statedb.HasSelfDestructed(address) {
return 0, codeHash, common.Hash{}, nil, false, errors.New("self destructed")
}

params, err := p.Params()
if err != nil {
return 0, codeHash, common.Hash{}, nil, false, err
Expand Down
2 changes: 1 addition & 1 deletion go-ethereum

0 comments on commit 377c89c

Please sign in to comment.