Skip to content

Commit

Permalink
convert from int->uint for more clarity (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush authored Mar 17, 2023
1 parent 6f61b14 commit 7b9e010
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
Expand Up @@ -1720,7 +1720,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]
Expand Down

0 comments on commit 7b9e010

Please sign in to comment.