Skip to content

Commit

Permalink
fix: set account to base account
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Aug 21, 2024
1 parent 3c83511 commit 0a9c9c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/upgrades/v2.12/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ func burnTokensFromAccount(ctx sdk.Context, sk *stakingkeeper.Keeper, bk bankkee
// Set account back to a base account before burning to vest everything
switch vestingAcc := acc.(type) {
case *types.ContinuousVestingAccount:
ak.SetAccount(ctx, vestingAcc.BaseVestingAccount)
ak.SetAccount(ctx, vestingAcc.BaseVestingAccount.BaseAccount)
case *types.DelayedVestingAccount:
ak.SetAccount(ctx, vestingAcc.BaseVestingAccount)
ak.SetAccount(ctx, vestingAcc.BaseVestingAccount.BaseAccount)
case *types.PeriodicVestingAccount:
ak.SetAccount(ctx, vestingAcc.BaseVestingAccount)
ak.SetAccount(ctx, vestingAcc.BaseVestingAccount.BaseAccount)
default:
// do nothing
}
Expand Down

0 comments on commit 0a9c9c4

Please sign in to comment.