From d4f773d49554b9f2f3469e63978b6fe7977bfe10 Mon Sep 17 00:00:00 2001 From: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:52:57 -0800 Subject: [PATCH] lint fixes --- app/app.go | 6 +++--- app/{gmp_middleware => gmpmiddleware}/gmp_middleware.go | 0 app/{gmp_middleware => gmpmiddleware}/handler.go | 0 app/{gmp_middleware => gmpmiddleware}/types.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename app/{gmp_middleware => gmpmiddleware}/gmp_middleware.go (100%) rename app/{gmp_middleware => gmpmiddleware}/handler.go (100%) rename app/{gmp_middleware => gmpmiddleware}/types.go (98%) diff --git a/app/app.go b/app/app.go index 2901703a..70c9785a 100644 --- a/app/app.go +++ b/app/app.go @@ -97,7 +97,7 @@ import ( ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "github.com/spf13/cast" - gmp_middleware "github.com/ojo-network/ojo/app/gmp_middleware" + gmpmiddleware "github.com/ojo-network/ojo/app/gmpmiddleware" ibctransfer "github.com/ojo-network/ojo/app/ibctransfer" "github.com/ojo-network/ojo/util/genmap" @@ -528,9 +528,9 @@ func New( // Create static IBC router, add transfer route, then set and seal it. // We also need to add the axelar GMP middleware here. ibcRouter := ibcporttypes.NewRouter() - ibcStack = gmp_middleware.NewIBCMiddleware( + ibcStack = gmpmiddleware.NewIBCMiddleware( ibcStack, - gmp_middleware.NewGmpHandler(app.GmpKeeper), + gmpmiddleware.NewGmpHandler(app.GmpKeeper), ) ibcRouter.AddRoute(ibctransfertypes.ModuleName, ibcStack) app.IBCKeeper.SetRouter(ibcRouter) diff --git a/app/gmp_middleware/gmp_middleware.go b/app/gmpmiddleware/gmp_middleware.go similarity index 100% rename from app/gmp_middleware/gmp_middleware.go rename to app/gmpmiddleware/gmp_middleware.go diff --git a/app/gmp_middleware/handler.go b/app/gmpmiddleware/handler.go similarity index 100% rename from app/gmp_middleware/handler.go rename to app/gmpmiddleware/handler.go diff --git a/app/gmp_middleware/types.go b/app/gmpmiddleware/types.go similarity index 98% rename from app/gmp_middleware/types.go rename to app/gmpmiddleware/types.go index af514a31..d049ea88 100644 --- a/app/gmp_middleware/types.go +++ b/app/gmpmiddleware/types.go @@ -1,4 +1,4 @@ -package gmp_middleware +package gmpmiddleware import ( sdk "github.com/cosmos/cosmos-sdk/types"