build(deps): Bump go.uber.org/mock from 0.5.2 to 0.6.0 in /simapp (#25201)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: aljo242 <alex@interchainlabs.io>
This commit is contained in:
co-authored by
aljo242
parent
ee5eabb63d
commit
4953d5bf2d
@@ -49,12 +49,12 @@ func (k Querier) ContinuousFund(ctx context.Context, req *types.QueryContinuousF
|
||||
|
||||
acc, err := k.authKeeper.AddressCodec().StringToBytes(req.Recipient)
|
||||
if err != nil {
|
||||
return nil, status.Errorf(codes.InvalidArgument, fmt.Errorf("invalid address: %w", err).Error())
|
||||
return nil, status.Errorf(codes.InvalidArgument, "%s", fmt.Errorf("invalid address: %w", err).Error())
|
||||
}
|
||||
|
||||
fund, err := k.Keeper.ContinuousFunds.Get(sdkCtx, acc)
|
||||
if err != nil {
|
||||
return nil, status.Errorf(codes.NotFound, fmt.Sprintf("not found %s", req.Recipient))
|
||||
return nil, status.Errorf(codes.NotFound, "%s", fmt.Sprintf("not found %s", req.Recipient))
|
||||
}
|
||||
|
||||
return &types.QueryContinuousFundResponse{ContinuousFund: fund}, nil
|
||||
@@ -70,7 +70,7 @@ func (k Querier) ContinuousFunds(ctx context.Context, req *types.QueryContinuous
|
||||
|
||||
funds, err := k.GetAllContinuousFunds(sdkCtx)
|
||||
if err != nil {
|
||||
return nil, status.Errorf(codes.Internal, fmt.Errorf("failed to fetch continuous funds: %w", err).Error())
|
||||
return nil, status.Errorf(codes.Internal, "%s", fmt.Errorf("failed to fetch continuous funds: %w", err).Error())
|
||||
}
|
||||
|
||||
return &types.QueryContinuousFundsResponse{ContinuousFunds: funds}, nil
|
||||
|
||||
Reference in New Issue
Block a user