Unverified Commit f7336573 authored by Darioush Jalali's avatar Darioush Jalali Committed by GitHub

internal/ethapi: avoid int overflow in GetTransactionReceipt (#26911)

parent d8066dcd
......@@ -1626,7 +1626,7 @@ func (s *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash common.
if err != nil {
return nil, err
}
if len(receipts) <= int(index) {
if uint64(len(receipts)) <= index {
return nil, nil
}
receipt := receipts[index]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment