Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Minor tweaks for readability/comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle committed Aug 17, 2023
1 parent 50ec4a7 commit 975550a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions x/igp/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) error {

// ExportGenesis returns the hyperlane IGP module's exported genesis.
func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState {
var genesisState types.GenesisState
return genesisState
return types.GenesisState{}
}
10 changes: 3 additions & 7 deletions x/igp/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ var (
// a no-op.
type AppModuleBasic struct{}

// Name returns the hyperlane ISM module name.
// Name returns the hyperlane IGP module name.
func (AppModuleBasic) Name() string {
return types.ModuleName
}

// RegisterLegacyAminoCodec performs a no-op. Hyperlane ISM does not support amino.
// RegisterLegacyAminoCodec performs a no-op. Hyperlane IGP does not support amino.
func (AppModuleBasic) RegisterLegacyAminoCodec(*codec.LegacyAmino) {}

// RegisterInterfaces registers module concrete types into protobuf Any.
Expand Down Expand Up @@ -98,11 +98,7 @@ func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, bz json.Ra
if err != nil {
return fmt.Errorf("failed to unmarshal %s genesis state: %s", am.Name(), err)
}
err = am.keeper.InitGenesis(ctx, gs)
if err != nil {
return err
}
return nil
return am.keeper.InitGenesis(ctx, gs)
}

func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {
Expand Down

0 comments on commit 975550a

Please sign in to comment.