Skip to content

Commit

Permalink
Merge pull request #332 from terra-money/fix/set-base-account
Browse files Browse the repository at this point in the history
fix: set account to base account
  • Loading branch information
javiersuweijie committed Aug 21, 2024
2 parents 3c83511 + 0a9c9c4 commit a60c917
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 a60c917

Please sign in to comment.