Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Dec 19, 2024
1 parent 6db99df commit b062f46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/auction/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (k Querier) QueryAllBidsByAddress(ctx context.Context, req *types.QueryAllB
}

var Bids []types.Bid
k.k.Auctions.Walk(ctx, nil, func(key uint64, value types.Auction) (stop bool, err error) {
err = k.k.Auctions.Walk(ctx, nil, func(key uint64, value types.Auction) (stop bool, err error) {
bidsByAddress, err := k.k.BidByAddress.Get(ctx, collections.Join(key, sdk.AccAddress(bidderAddr)))
if err != nil {
return true, err
Expand All @@ -108,6 +108,9 @@ func (k Querier) QueryAllBidsByAddress(ctx context.Context, req *types.QueryAllB
Bids = append(Bids, bidsByAddress.Bids...)
return false, nil
})
if err != nil {
return nil, err
}

return &types.QueryAllBidsByAddressResponse{
Bids: Bids,
Expand Down

0 comments on commit b062f46

Please sign in to comment.