Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Jul 19, 2022
1 parent 86608ad commit e167855
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions x/bank/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/bank/client/cli"
"github.com/cosmos/cosmos-sdk/x/bank/exported"
"github.com/cosmos/cosmos-sdk/x/bank/keeper"
bankv1 "github.com/cosmos/cosmos-sdk/x/bank/migrations/v1"
v1bank "github.com/cosmos/cosmos-sdk/x/bank/migrations/v1"
"github.com/cosmos/cosmos-sdk/x/bank/simulation"
"github.com/cosmos/cosmos-sdk/x/bank/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
Expand Down Expand Up @@ -95,7 +95,7 @@ func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
types.RegisterInterfaces(registry)

// Register legacy interfaces for migration scripts.
bankv1.RegisterInterfaces(registry)
v1bank.RegisterInterfaces(registry)
}

// AppModule implements an application module for the bank module.
Expand Down
18 changes: 10 additions & 8 deletions x/crisis/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ import (
"github.com/cosmos/cosmos-sdk/x/crisis/keeper"
"github.com/cosmos/cosmos-sdk/x/crisis/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
)

// ConsensusVersion defines the current x/params module consensus version.
// ConsensusVersion defines the current x/crisis module consensus version.
const ConsensusVersion = 2

var (
Expand Down Expand Up @@ -201,12 +200,15 @@ func init() {
type crisisInputs struct {
depinject.In

Config *modulev1.Module
Key *store.KVStoreKey
Cdc codec.Codec
AppOpts servertypes.AppOptions `optional:"true"`
Subspace paramstypes.Subspace
Config *modulev1.Module
Key *store.KVStoreKey
Cdc codec.Codec
AppOpts servertypes.AppOptions `optional:"true"`

BankKeeper types.SupplyKeeper

// LegacySubspace is used solely for migration of x/params managed parameters
LegacySubspace exported.Subspace
}

type crisisOutputs struct {
Expand Down Expand Up @@ -239,7 +241,7 @@ func provideModule(in crisisInputs) crisisOutputs {

skipGenesisInvariants := cast.ToBool(in.AppOpts.Get(FlagSkipGenesisInvariants))

m := NewAppModule(k, skipGenesisInvariants, in.Subspace)
m := NewAppModule(k, skipGenesisInvariants, in.LegacySubspace)

return crisisOutputs{CrisisKeeper: k, Module: runtime.WrapAppModule(m)}
}

0 comments on commit e167855

Please sign in to comment.