Skip to content

Commit 0866f99

Browse files
author
colinlyguo
committed
address AI's comments
1 parent 2eb7266 commit 0866f99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rollup/internal/orm/pending_transaction.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ func (o *PendingTransaction) DeletePendingTransactionByTxHash(ctx context.Contex
163163
if result.Error != nil {
164164
return fmt.Errorf("failed to delete pending transaction, err: %w", result.Error)
165165
}
166+
if result.RowsAffected == 0 {
167+
return fmt.Errorf("no pending transaction found with hash: %s", hash.String())
168+
}
166169
return nil
167170
}
168171

0 commit comments

Comments
 (0)