From b062f46bac53d75d0854a4e47c34b5e45f3e58fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=C4=90=C3=B4ng?= Date: Thu, 19 Dec 2024 11:33:48 +0700 Subject: [PATCH] lint --- x/auction/keeper/grpc_query.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x/auction/keeper/grpc_query.go b/x/auction/keeper/grpc_query.go index a3a70d4..b36ecfc 100644 --- a/x/auction/keeper/grpc_query.go +++ b/x/auction/keeper/grpc_query.go @@ -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 @@ -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,