From b1c8eb34291db68ec5031dc7550b7513eeac2195 Mon Sep 17 00:00:00 2001 From: Yarom Swisa Date: Wed, 13 Mar 2024 11:24:27 +0200 Subject: [PATCH] fix --- x/pairing/keeper/msg_server_relay_payment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/pairing/keeper/msg_server_relay_payment.go b/x/pairing/keeper/msg_server_relay_payment.go index d8126eb35e..2dce3370d0 100644 --- a/x/pairing/keeper/msg_server_relay_payment.go +++ b/x/pairing/keeper/msg_server_relay_payment.go @@ -158,7 +158,7 @@ func (k msgServer) RelayPayment(goCtx context.Context, msg *types.MsgRelayPaymen // fail the TX *** totalCUInEpochForUserProvider := k.Keeper.AddEpochPayment(ctx, relay.SpecId, epochStart, project.Index, providerAddr, relay.CuSum, strconv.FormatUint(relay.SessionId, 16)) - + ctx.GasMeter().RefundGas(ctx.GasMeter().GasConsumed(), "") if badgeFound { k.handleBadgeCu(ctx, badgeData, relay.Provider, relay.CuSum, newBadgeTimerExpiry) }