diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index 32073cc8827..54cb68e7413 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -4,7 +4,6 @@ import ( "context" "errors" "fmt" - "reflect" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" @@ -202,7 +201,7 @@ func (app *BaseApp) MountStores(keys ...storetypes.StoreKey) { app.MountStore(key, storetypes.StoreTypeTransient) default: - panic("Unrecognized store key type " + reflect.TypeOf(key).Name()) + panic(fmt.Sprintf("Unrecognized store key type :%T", key)) } } } diff --git a/x/distribution/types/proposal.go b/x/distribution/types/proposal.go index 1a0d0a886ed..070bce7e381 100644 --- a/x/distribution/types/proposal.go +++ b/x/distribution/types/proposal.go @@ -21,7 +21,7 @@ func init() { govtypes.RegisterProposalTypeCodec(&CommunityPoolSpendProposal{}, "cosmos-sdk/CommunityPoolSpendProposal") } -// NewCommunityPoolSpendProposal creates a new community pool spned proposal. +// NewCommunityPoolSpendProposal creates a new community pool spend proposal. //nolint:interfacer func NewCommunityPoolSpendProposal(title, description string, recipient sdk.AccAddress, amount sdk.Coins) *CommunityPoolSpendProposal { return &CommunityPoolSpendProposal{title, description, recipient.String(), amount}