From 3bee695f29f85dd20eed2dd2827adb037b8d2c5e Mon Sep 17 00:00:00 2001 From: Yarom Swisa Date: Sun, 7 Apr 2024 15:56:36 +0300 Subject: [PATCH] small fix --- x/dualstaking/keeper/msg_server_delegate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/dualstaking/keeper/msg_server_delegate.go b/x/dualstaking/keeper/msg_server_delegate.go index 7432764819..fd66d1b284 100644 --- a/x/dualstaking/keeper/msg_server_delegate.go +++ b/x/dualstaking/keeper/msg_server_delegate.go @@ -57,7 +57,7 @@ func (k Keeper) DelegateFull(ctx sdk.Context, delegator string, validator string delegationAfter, _ := k.GetDelegation(ctx, delegator, types.EMPTY_PROVIDER, types.EMPTY_PROVIDER_CHAINID, nextEpoch) - amount = delegationAfter.Amount.Sub(delegationBefore.Amount) + amount.Amount = delegationAfter.Amount.Amount.Sub(delegationBefore.Amount.Amount) err = k.Redelegate( ctx,