diff --git a/modules/core/03-connection/types/msgs_test.go b/modules/core/03-connection/types/msgs_test.go index 121e6f471e7..ed7a7a54c5d 100644 --- a/modules/core/03-connection/types/msgs_test.go +++ b/modules/core/03-connection/types/msgs_test.go @@ -8,6 +8,7 @@ import ( "github.com/Finschia/finschia-sdk/store/iavl" "github.com/Finschia/finschia-sdk/store/rootmulti" storetypes "github.com/Finschia/finschia-sdk/store/types" + "github.com/Finschia/ostracon/libs/log" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" dbm "github.com/tendermint/tm-db" @@ -46,7 +47,8 @@ func (suite *MsgTestSuite) SetupTest() { app := simapp.Setup(false) db := dbm.NewMemDB() - store := rootmulti.NewStore(db) + dblog := log.NewNopLogger() + store := rootmulti.NewStore(db, dblog) storeKey := storetypes.NewKVStoreKey("iavlStoreKey") store.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, nil) diff --git a/modules/core/04-channel/types/msgs_test.go b/modules/core/04-channel/types/msgs_test.go index 8c919dc689e..8beed13d3ef 100644 --- a/modules/core/04-channel/types/msgs_test.go +++ b/modules/core/04-channel/types/msgs_test.go @@ -8,6 +8,7 @@ import ( "github.com/Finschia/finschia-sdk/store/rootmulti" storetypes "github.com/Finschia/finschia-sdk/store/types" sdk "github.com/Finschia/finschia-sdk/types" + "github.com/Finschia/ostracon/libs/log" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" dbm "github.com/tendermint/tm-db" @@ -77,7 +78,8 @@ type TypesTestSuite struct { func (suite *TypesTestSuite) SetupTest() { app := simapp.Setup(false) db := dbm.NewMemDB() - store := rootmulti.NewStore(db) + dblog := log.NewNopLogger() + store := rootmulti.NewStore(db, dblog) storeKey := storetypes.NewKVStoreKey("iavlStoreKey") store.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, nil) diff --git a/modules/core/23-commitment/types/commitment_test.go b/modules/core/23-commitment/types/commitment_test.go index 669760103a6..814675d67f8 100644 --- a/modules/core/23-commitment/types/commitment_test.go +++ b/modules/core/23-commitment/types/commitment_test.go @@ -6,6 +6,7 @@ import ( "github.com/Finschia/finschia-sdk/store/iavl" "github.com/Finschia/finschia-sdk/store/rootmulti" storetypes "github.com/Finschia/finschia-sdk/store/types" + "github.com/Finschia/ostracon/libs/log" "github.com/stretchr/testify/suite" dbm "github.com/tendermint/tm-db" ) @@ -20,7 +21,8 @@ type MerkleTestSuite struct { func (suite *MerkleTestSuite) SetupTest() { db := dbm.NewMemDB() - suite.store = rootmulti.NewStore(db) + dblog := log.NewNopLogger() + suite.store = rootmulti.NewStore(db, dblog) suite.storeKey = storetypes.NewKVStoreKey("iavlStoreKey") diff --git a/testing/simapp/app.go b/testing/simapp/app.go index 4fea5e23d5b..0a2de262f8b 100644 --- a/testing/simapp/app.go +++ b/testing/simapp/app.go @@ -19,7 +19,6 @@ import ( "github.com/Finschia/finschia-sdk/baseapp" "github.com/Finschia/finschia-sdk/client" "github.com/Finschia/finschia-sdk/client/grpc/tmservice" - "github.com/Finschia/finschia-sdk/client/rpc" "github.com/Finschia/finschia-sdk/codec" "github.com/Finschia/finschia-sdk/codec/types" "github.com/Finschia/finschia-sdk/server/api" @@ -758,14 +757,12 @@ func (app *SimApp) SimulationManager() *module.SimulationManager { // API server. func (app *SimApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) { clientCtx := apiSvr.ClientCtx - rpc.RegisterRoutes(clientCtx, apiSvr.Router) // Register new tx routes from grpc-gateway. authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) // Register new tendermint queries routes from grpc-gateway. tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) // Register legacy and grpc-gateway routes for all modules. - ModuleBasics.RegisterRESTRoutes(clientCtx, apiSvr.Router) ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) // register swagger API from root so that other applications can override easily