Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Sep 10, 2023
1 parent 56767a8 commit c762f30
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x/feeshare/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ type FeeSharePayoutEventOutput struct {
}

func addNewFeeSharePayoutsForMsg(ctx sdk.Context, fsk FeeShareKeeper, toPay *[]sdk.AccAddress, m sdk.Msg) error {
switch msg := m.(type) {
case *wasmtypes.MsgExecuteContract:
if msg, ok := m.(*wasmtypes.MsgExecuteContract); ok {
contractAddr, err := sdk.AccAddressFromBech32(msg.Contract)
if err != nil {
return err
Expand Down Expand Up @@ -93,7 +92,7 @@ func FeeSharePayout(ctx sdk.Context, bankKeeper BankKeeper, totalFees sdk.Coins,
// Get valid withdraw addresses from contracts
toPay := make([]sdk.AccAddress, 0)

// validAuthz checks if the msg is an authz exec msg and if so, call tghe validExecuteMsg for each
// validAuthz checks if the msg is an authz exec msg and if so, call the validExecuteMsg for each
// inner msg. If it is a CosmWasm execute message, that logic runs for nested functions.
validAuthz := func(execMsg *authz.MsgExec) error {
for _, v := range execMsg.Msgs {
Expand Down

0 comments on commit c762f30

Please sign in to comment.