internal/ethapi: avoid int overflow in GetTransactionReceipt (#26911)
This commit is contained in:
parent
d8066dcde8
commit
f733657383
@ -1626,7 +1626,7 @@ func (s *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash common.
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if len(receipts) <= int(index) {
|
if uint64(len(receipts)) <= index {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
receipt := receipts[index]
|
receipt := receipts[index]
|
||||||
|
Loading…
Reference in New Issue
Block a user