Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed May 14, 2024
1 parent 1559fbd commit b3a8efa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions crypto/codec/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package codec

import (
"cosmossdk.io/core/registry"

"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
"github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
Expand Down
3 changes: 2 additions & 1 deletion crypto/keys/secp256r1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
package secp256r1

import (
"cosmossdk.io/core/registry"
"crypto/elliptic"
"fmt"

"cosmossdk.io/core/registry"

cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
)

Expand Down
5 changes: 2 additions & 3 deletions runtime/v2/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package runtime

import (
"context"
"cosmossdk.io/core/appmodule"
"encoding/json"
"fmt"
"io"
Expand Down Expand Up @@ -38,7 +37,7 @@ func (a *AppBuilder) DefaultGenesis() map[string]json.RawMessage {
// This is the primary hook for integrating with modules which are not registered using the app config.
func (a *AppBuilder) RegisterModules(modules ...appmodulev2.AppModule) error {
for _, appModule := range modules {
if mod, ok := appModule.(appmodule.HasName); ok {
if mod, ok := appModule.(appmodulev2.HasName); ok {
name := mod.Name()
if _, ok := a.app.moduleManager.modules[name]; ok {
return fmt.Errorf("module named %q already exists", name)
Expand All @@ -49,7 +48,7 @@ func (a *AppBuilder) RegisterModules(modules ...appmodulev2.AppModule) error {
mod.RegisterInterfaces(a.app.interfaceRegistrar)
}

if mod, ok := appModule.(appmodule.HasAminoCodec); ok {
if mod, ok := appModule.(appmodulev2.HasAminoCodec); ok {
mod.RegisterLegacyAminoCodec(a.app.amino)
}
}
Expand Down
2 changes: 1 addition & 1 deletion types/tx/types.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package tx

import (
"cosmossdk.io/core/registry"
"fmt"

protov2 "google.golang.org/protobuf/proto"

"cosmossdk.io/core/registry"
errorsmod "cosmossdk.io/errors"

"github.com/cosmos/cosmos-sdk/codec"
Expand Down

0 comments on commit b3a8efa

Please sign in to comment.