Skip to content

Commit

Permalink
rm unused
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Sep 16, 2024
1 parent afd556c commit 36117b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 1 addition & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,6 @@ type App struct {

PFMModule packetforward.AppModule

//IBCRLModule ibcratelimitmodule.AppModule

TransferStack *ibchooks.IBCMiddleware
Ics20WasmHooks *ibchooks.WasmHooks
RateLimitingICS4Wrapper *ibcratelimit.ICS4Wrapper
Expand Down Expand Up @@ -634,7 +632,6 @@ func New(
)

app.WireICS20PreWasmKeeper(appCodec)
//app:= feerefunder.NewAppModule(appCodec, *app.FeeKeeper, app.AccountKeeper, app.BankKeeper)
app.PFMModule = packetforward.NewAppModule(app.PFMKeeper, app.GetSubspace(pfmtypes.ModuleName))

app.ICAControllerKeeper = icacontrollerkeeper.NewKeeper(
Expand Down Expand Up @@ -1688,7 +1685,7 @@ func (app *App) WireICS20PreWasmKeeper(
&wasmHooks,
)

ibcratelimitKeeper := ibcratelimitkeeper.NewKeeper(appCodec, app.keys[ibctransfertypes.StoreKey], authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String())
ibcratelimitKeeper := ibcratelimitkeeper.NewKeeper(appCodec, app.keys[ibcratelimittypes.ModuleName], authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String())
// ChannelKeeper wrapper for rate limiting SendPacket(). The wasmKeeper needs to be added after it's created
rateLimitingICS4Wrapper := ibcratelimit.NewICS4Middleware(
app.HooksICS4Wrapper,
Expand Down
7 changes: 1 addition & 6 deletions x/ibc-rate-limit/ibc_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,9 @@ func (suite *MiddlewareTestSuite) TestUnsetRateLimitingContract() {
app := suite.GetNeutronZoneApp(suite.ChainA)

// Unset the contract param
params, err := types.NewParams("")
err := app.RateLimitingICS4Wrapper.IbcratelimitKeeper.SetParams(suite.ChainA.GetContext(), types.Params{ContractAddress: ""})
suite.Require().NoError(err)
paramSpace, ok := app.ParamsKeeper.GetSubspace(types.ModuleName)
suite.Require().True(ok)
// N.B.: this panics if validation fails.
paramSpace.SetParamSet(suite.ChainA.GetContext(), &params)
}

// Test rate limits are reverted if a "send" fails
Expand Down Expand Up @@ -617,8 +614,6 @@ func (suite *MiddlewareTestSuite) RegisterRateLimitingContract(addr []byte) {
addrStr, _ := sdk.Bech32ifyAddressBytes("neutron", addr)
app := suite.GetNeutronZoneApp(suite.ChainA)
_ = app.RateLimitingICS4Wrapper.IbcratelimitKeeper.SetParams(suite.ChainA.GetContext(), types.Params{ContractAddress: addrStr})
a := app.RateLimitingICS4Wrapper.GetContractAddress(suite.ChainA.GetContext())
fmt.Println(a)
require.True(suite.ChainA.TB, true)
}

Expand Down

0 comments on commit 36117b4

Please sign in to comment.