Skip to content

Commit

Permalink
Update upgrade.go
Browse files Browse the repository at this point in the history
Dig has continuous vesting accounts, so we needed to change the unlock code from base to continuous
  • Loading branch information
faddat authored Apr 11, 2022
1 parent 04affe8 commit 3e74eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/upgrade/v2/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3e74eb1

Please sign in to comment.