Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
scottburch committed Jan 15, 2021
1 parent 5b709d3 commit b482492
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
32 changes: 19 additions & 13 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,25 @@ func NewCRUDApp(
app.SetEndBlocker(app.EndBlocker)


addAnteHandler(app)




// initialize stores
app.MountKVStores(keys)
app.MountTransientStores(tkeys)

err := app.LoadLatestVersion(app.keys[bam.MainStoreKey])
if err != nil {
tmos.Exit(err.Error())
}

return app
}


func addAnteHandler(app *CRUDApp) {
authAnteHandler := auth.NewAnteHandler(
app.accountKeeper,
app.supplyKeeper,
Expand Down Expand Up @@ -346,19 +365,6 @@ func NewCRUDApp(
comboAnteHandler,
)




// initialize stores
app.MountKVStores(keys)
app.MountTransientStores(tkeys)

err := app.LoadLatestVersion(app.keys[bam.MainStoreKey])
if err != nil {
tmos.Exit(err.Error())
}

return app
}


Expand Down
5 changes: 0 additions & 5 deletions x/tax/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ func collectFeeTax( ctx sdk.Context, supplyKeeper types.SupplyKeeper, fromAcc ex
"insufficient funds to pay for tax fees; %s < %s", spendableCoins, taxFees)
}

//err := supplyKeeper.SendCoinsFromAccountToModule(ctx, fromAcc.GetAddress(), authtypes.FeeCollectorName, fees)
//if err != nil {
// return sdkerrors.Wrapf(sdkerrors.ErrInsufficientFunds, err.Error())
//}

err := supplyKeeper.SendCoinsFromModuleToAccount(ctx, authtypes.FeeCollectorName, toAcc, taxFees)
if err != nil {
return sdkerrors.Wrapf(sdkerrors.ErrInsufficientFunds, err.Error())
Expand Down

0 comments on commit b482492

Please sign in to comment.