From 3e74eb1108c182abe4072413279fbe0de3dcc984 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Mon, 11 Apr 2022 17:38:23 +0700 Subject: [PATCH] Update upgrade.go Dig has continuous vesting accounts, so we needed to change the unlock code from base to continuous --- app/upgrade/v2/upgrade.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/upgrade/v2/upgrade.go b/app/upgrade/v2/upgrade.go index 22eaa6639..5159e2410 100644 --- a/app/upgrade/v2/upgrade.go +++ b/app/upgrade/v2/upgrade.go @@ -43,7 +43,7 @@ func FixMinCommisionRate(ctx sdk.Context, staking *stakingkeeper.Keeper) { func UnlockAllVestingAccounts(ctx sdk.Context, accKeeper *authkeeper.AccountKeeper) { accounts := accKeeper.GetAllAccounts(ctx) for _, acc := range accounts { - vestingAcc, ok := acc.(*vestingtypes.BaseVestingAccount) + vestingAcc, ok := acc.(*vestingtypes.ContinuousVestingAccount) if ok { accKeeper.SetAccount(ctx, vestingAcc.BaseAccount) }