diff --git a/app/app.go b/app/app.go index d59e21e7c..c7dd59ef8 100644 --- a/app/app.go +++ b/app/app.go @@ -1598,7 +1598,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(tokenfactorytypes.StoreKey).WithKeyTable(tokenfactorytypes.ParamKeyTable()) paramsKeeper.Subspace(interchainqueriesmoduletypes.StoreKey).WithKeyTable(interchainqueriesmoduletypes.ParamKeyTable()) paramsKeeper.Subspace(interchaintxstypes.StoreKey).WithKeyTable(interchaintxstypes.ParamKeyTable()) - paramsKeeper.Subspace(ibcratelimittypes.ModuleName).WithKeyTable(ibcratelimittypes.ParamKeyTable()) + paramsKeeper.Subspace(ibcratelimittypes.ModuleName) return paramsKeeper } diff --git a/x/ibc-rate-limit/ibc_middleware_test.go b/x/ibc-rate-limit/ibc_middleware_test.go index 58810a9d0..98a3364df 100644 --- a/x/ibc-rate-limit/ibc_middleware_test.go +++ b/x/ibc-rate-limit/ibc_middleware_test.go @@ -159,11 +159,6 @@ func (suite *MiddlewareTestSuite) FullSendAToB(msg sdk.Msg) (*abci.ExecTxResult, if err != nil { return nil, "", err } - fmt.Println(sendResult.Log) - fmt.Println(sendResult.Info) - fmt.Println(sendResult.Code) - fmt.Println(sendResult.Events) - fmt.Println(sendResult.GasUsed) packet, err := ibctesting.ParsePacketFromEvents(sendResult.GetEvents()) if err != nil { @@ -650,13 +645,12 @@ func (suite *MiddlewareTestSuite) InstantiateRLContract(quotas string) sdk.AccAd transferModule := app.AccountKeeper.GetModuleAddress(transfertypes.ModuleName) fmt.Println(quotas) //govModule := app.AccountKeeper.GetModuleAddress(govtypes.ModuleName) - initMsgBz := []byte(fmt.Sprintf(`{ "gov_module": "%s", "ibc_module":"%s", "paths": [%s] }`, - suite.ChainA.SenderAccount.GetAddress(), transferModule, quotas)) + testutil.TestOwnerAddress, transferModule, quotas)) contractKeeper := wasmkeeper.NewDefaultPermissionKeeper(app.WasmKeeper) codeID := uint64(1) @@ -675,9 +669,9 @@ func (suite *MiddlewareTestSuite) RegisterRateLimitingContract(addr []byte) { paramSpace, ok := app.ParamsKeeper.GetSubspace(types.ModuleName) require.True(suite.ChainA.TB, ok) paramSpace.SetParamSet(suite.ChainA.GetContext(), ¶ms) - //p := app.GetContractAddress(suite.ChainA.GetContext()) - //fmt.Println("print contract addr from params module") - //fmt.Println(p) + p := app.RateLimitingICS4Wrapper.GetContractAddress(suite.ChainA.GetContext()) + fmt.Println("print contract addr from params module") + fmt.Println(p) } // AssertEventEmitted asserts that ctx's event manager has emitted the given number of events diff --git a/x/ibc-rate-limit/ibc_module.go b/x/ibc-rate-limit/ibc_module.go index 6b101b410..4ec50fa20 100644 --- a/x/ibc-rate-limit/ibc_module.go +++ b/x/ibc-rate-limit/ibc_module.go @@ -2,6 +2,7 @@ package ibc_rate_limit import ( "encoding/json" + "fmt" "strings" "github.com/neutron-org/neutron/v4/x/ibc-hooks/utils" @@ -138,6 +139,7 @@ func (im *IBCModule) OnRecvPacket( contract := im.ics4Middleware.GetContractAddress(ctx) if contract == "" { // The contract has not been configured. Continue as usual + fmt.Println("The contract has not been configured. Continue as usual") return im.app.OnRecvPacket(ctx, packet, relayer) }