Skip to content

Commit

Permalink
golangci-lint run ./... --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Apr 29, 2023
1 parent 97e1e09 commit 8ee0735
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ type App struct {
sm *module.SimulationManager

// module configurator
configurator module.Configurator
// configurator module.Configurator // TODO: I think we need to do something with this...
}

// New returns a reference to an initialized Juno.
Expand Down Expand Up @@ -466,7 +466,7 @@ func (app *App) GetSubspace(moduleName string) paramstypes.Subspace {

// RegisterAPIRoutes registers all application module routes with the provided
// API server.
func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
func (app *App) RegisterAPIRoutes(apiSvr *api.Server, _ config.APIConfig) {
clientCtx := apiSvr.ClientCtx
// Register new tx routes from grpc-gateway.
authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
Expand Down
2 changes: 0 additions & 2 deletions cmd/junod/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
customTMConfig := initTendermintConfig()

return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig, customTMConfig)

},
}

Expand All @@ -118,7 +117,6 @@ func initTendermintConfig() *tmcfg.Config {
// initAppConfig helps to override default appConfig template and configs.
// return "", nil if no custom configuration is required for the application.
func initAppConfig() (string, interface{}) {

type CustomAppConfig struct {
serverconfig.Config

Expand Down
2 changes: 1 addition & 1 deletion x/ibc-hooks/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ func (k Keeper) DeletePacketCallback(ctx sdk.Context, channel string, packetSequ
func DeriveIntermediateSender(channel, originalSender, bech32Prefix string) (string, error) {
senderStr := fmt.Sprintf("%s/%s", channel, originalSender)
senderHash32 := address.Hash(types.SenderPrefix, []byte(senderStr))
sender := sdk.AccAddress(senderHash32[:])
sender := sdk.AccAddress(senderHash32)
return sdk.Bech32ifyAddressBytes(bech32Prefix, sender)
}

0 comments on commit 8ee0735

Please sign in to comment.