Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/ethapi: avoid int overflow in GetTransactionReceipt (ethereu…
Browse files Browse the repository at this point in the history
gzliudan committed Oct 17, 2024
1 parent 9f65da8 commit 4549cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
@@ -2225,7 +2225,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(ctx context.Context, ha
if err != nil {
return nil, err
}
if len(receipts) <= int(index) {
if uint64(len(receipts)) <= index {
return nil, nil
}
receipt := receipts[index]

0 comments on commit 4549cc2

Please sign in to comment.