Skip to content

Commit

Permalink
Handle errors returned from zero-address deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Nov 17, 2024
1 parent b94ab95 commit 7eda73e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions services/ingestion/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,12 @@ func (e *Engine) processEvents(events *models.CadenceEvents) error {
if err != nil {
return err
}
base.DeleteAccount(gethCommon.Address{})
base.Commit()
if err := base.DeleteAccount(gethCommon.Address{}); err != nil {
return err
}
if err := base.Commit(); err != nil {
return err
}
}
res, err := replayer.ReplayBlock(events.TxEventPayloads(), blockEvents)
if err != nil {
Expand Down

0 comments on commit 7eda73e

Please sign in to comment.