Skip to content

Commit

Permalink
fix state.ErrNotFound check
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusmor committed Aug 6, 2024
1 parent ff2dc48 commit d180b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state/pgstatestorage/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ func (p *PostgresStorage) GetRawBatchTimestamps(ctx context.Context, batchNumber
}

lastL2Block, err := p.GetLastL2BlockByBatchNumber(ctx, batchNumber, dbTx)
if !errors.Is(err, state.ErrNotFound) {
if err != nil && !errors.Is(err, state.ErrNotFound) {
return nil, nil, err
}

Expand Down

0 comments on commit d180b2e

Please sign in to comment.