Skip to content

Commit f733657

Browse files
author
Darioush Jalali
authored
internal/ethapi: avoid int overflow in GetTransactionReceipt (#26911)
1 parent d8066dc commit f733657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ func (s *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash common.
16261626
if err != nil {
16271627
return nil, err
16281628
}
1629-
if len(receipts) <= int(index) {
1629+
if uint64(len(receipts)) <= index {
16301630
return nil, nil
16311631
}
16321632
receipt := receipts[index]

0 commit comments

Comments
 (0)