Skip to content

Commit

Permalink
Merge pull request #147 from notional-labs/dang/fix-cli-proposal-sdk46
Browse files Browse the repository at this point in the history
fix cli
  • Loading branch information
GNaD13 authored May 8, 2023
2 parents 1441c80 + 53f2ec9 commit b6c2c03
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions x/feeabs/client/cli/tx.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package cli

import (
sdk "github.com/cosmos/cosmos-sdk/types"
v1types "github.com/cosmos/cosmos-sdk/x/gov/types/v1"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
sdk "github.com/cosmos/cosmos-sdk/types"
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
"github.com/notional-labs/fee-abstraction/v3/x/feeabs/types"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -115,17 +114,13 @@ func NewCmdSubmitAddHostZoneProposal() *cobra.Command {
)

from := clientCtx.GetFromAddress()
legacyContent, err := v1types.NewLegacyContent(content, from.String())
if err != nil {
return err
}

deposit, err := sdk.ParseCoinsNormalized(proposal.Deposit)
if err != nil {
return err
}

msg, err := v1types.NewMsgSubmitProposal([]sdk.Msg{legacyContent}, deposit, from.String(), "")
msg, err := govv1beta1.NewMsgSubmitProposal(content, deposit, from)
if err != nil {
return err
}
Expand Down Expand Up @@ -160,17 +155,13 @@ func NewCmdSubmitDeleteHostZoneProposal() *cobra.Command {
)

from := clientCtx.GetFromAddress()
legacyContent, err := v1types.NewLegacyContent(content, from.String())
if err != nil {
return err
}

deposit, err := sdk.ParseCoinsNormalized(proposal.Deposit)
if err != nil {
return err
}

msg, err := v1types.NewMsgSubmitProposal([]sdk.Msg{legacyContent}, deposit, from.String(), "")
msg, err := govv1beta1.NewMsgSubmitProposal(content, deposit, from)
if err != nil {
return err
}
Expand Down Expand Up @@ -205,17 +196,13 @@ func NewCmdSubmitSetHostZoneProposal() *cobra.Command {
)

from := clientCtx.GetFromAddress()
legacyContent, err := v1types.NewLegacyContent(content, from.String())
if err != nil {
return err
}

deposit, err := sdk.ParseCoinsNormalized(proposal.Deposit)
if err != nil {
return err
}

msg, err := v1types.NewMsgSubmitProposal([]sdk.Msg{legacyContent}, deposit, from.String(), "")
msg, err := govv1beta1.NewMsgSubmitProposal(content, deposit, from)
if err != nil {
return err
}
Expand Down

0 comments on commit b6c2c03

Please sign in to comment.