fix: linter context error

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2024-04-25 13:46:15 +02:00
parent 634a9beabe
commit 6d91583c4e
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -40,7 +40,7 @@ func (k msgServer) CreateRedeemClaim(goCtx context.Context, msg *types.MsgCreate
) )
if util.IsValidatorBlockProposer(ctx, ctx.BlockHeader().ProposerAddress, k.RootDir) { if util.IsValidatorBlockProposer(ctx, ctx.BlockHeader().ProposerAddress, k.RootDir) {
go k.postClaimToService(ctx, msg.GetBeneficiary(), burnCoins.Amount.Uint64(), id) go postClaimToService(goCtx, msg.GetBeneficiary(), burnCoins.Amount.Uint64(), id)
} }
return &types.MsgCreateRedeemClaimResponse{}, nil return &types.MsgCreateRedeemClaimResponse{}, nil
@ -126,8 +126,8 @@ func (k msgServer) burnClaimAmount(ctx sdk.Context, addr sdk.AccAddress, burnCoi
return return
} }
func (k msgServer) postClaimToService(ctx sdk.Context, beneficiary string, amount uint64, id uint64) { func postClaimToService(goCtx context.Context, beneficiary string, amount uint64, id uint64) {
goCtx := sdk.WrapSDKContext(ctx) ctx := sdk.UnwrapSDKContext(goCtx)
util.GetAppLogger().Info(ctx, fmt.Sprintf("Issuing RDDL claim: %s/%d", beneficiary, id)) util.GetAppLogger().Info(ctx, fmt.Sprintf("Issuing RDDL claim: %s/%d", beneficiary, id))
txID, err := clients.PostClaim(goCtx, beneficiary, amount, id) txID, err := clients.PostClaim(goCtx, beneficiary, amount, id)
if err != nil { if err != nil {