Skip to content

Commit

Permalink
chore : updated go docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal-kanna committed Feb 9, 2024
1 parent 950f9f4 commit 21dea69
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/upgrades/v2.4.0/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,19 @@ func CreateUpgradeHandler(
}

func ExecuteProposal(ctx sdk.Context, ak auth.AccountKeeper, bk bank.Keeper) error {
// get the module account
// get airdrop claim module account
addr := ak.GetModuleAddress(claimtypes.ModuleName)

// get the balances from the account
// get the balances from the airdrop claim module account
balances := bk.GetAllBalances(ctx, addr)

// send the tokens to the module account
// claim moudle account do not have the burner permissions
// so we are sending it to the another module account and burning the tokens
if err := bk.SendCoinsFromModuleToModule(ctx, claimtypes.ModuleName, govtypes.ModuleName, balances); err != nil {
return err
}

// burn the coins
// burn the coins from the module account
err := bk.BurnCoins(ctx, govtypes.ModuleName, balances)
if err != nil {
return err
Expand Down

0 comments on commit 21dea69

Please sign in to comment.