Skip to content

Commit

Permalink
stale comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Sep 21, 2023
1 parent f2dd597 commit 8a913aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,6 @@ func NewAppKeepers(
})
wasmOpts = append(wasmOpts, querierOpts)

// burnOverride := wasmkeeper.WithMessageHandlerDecorator(func(old wasmkeeper.Messenger) wasmkeeper.Messenger {
// customBurner := burn.NewBurnerPlugin(appKeepers.BankKeeper)
// return wasmkeeper.NewBurnCoinMessageHandler(customBurner)
// })

junoBurnerPlugin := junoburn.NewBurnerPlugin(appKeepers.BankKeeper, appKeepers.MintKeeper)
burnOverride := wasmkeeper.WithMessageHandler(wasmkeeper.NewBurnCoinMessageHandler(junoBurnerPlugin))
wasmOpts = append(wasmOpts, burnOverride)
Expand Down
1 change: 0 additions & 1 deletion x/burn/burner.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ func (k *BurnerWasmPlugin) BurnCoins(ctx sdk.Context, _ string, amt sdk.Coins) e
}

func (k *BurnerWasmPlugin) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, _ string, amt sdk.Coins) error {
// we override the default send to instead sent to the "junoburn" module. Then we subtract that from the x/mint module in its query
return k.bk.SendCoinsFromAccountToModule(ctx, senderAddr, ModuleName, amt)
}

0 comments on commit 8a913aa

Please sign in to comment.