Merge PR #4665: Refactor x/gov Module Structure (prep for module spec)

This commit is contained in:
Federico Kunze
2019-08-08 15:51:18 -04:00
committed by Alexander Bezobchuk
parent 83db58ec5e
commit e4c8bd72b7
56 changed files with 2757 additions and 2633 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import (
"github.com/cosmos/cosmos-sdk/version"
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/cosmos/cosmos-sdk/x/auth/client/utils"
"github.com/cosmos/cosmos-sdk/x/gov"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
paramscutils "github.com/cosmos/cosmos-sdk/x/params/client/utils"
"github.com/cosmos/cosmos-sdk/x/params/types"
)
@@ -75,7 +75,7 @@ Where proposal.json contains:
from := cliCtx.GetFromAddress()
content := types.NewParameterChangeProposal(proposal.Title, proposal.Description, proposal.Changes.ToParamChanges())
msg := gov.NewMsgSubmitProposal(content, proposal.Deposit, from)
msg := govtypes.NewMsgSubmitProposal(content, proposal.Deposit, from)
if err := msg.ValidateBasic(); err != nil {
return err
}