Skip to content

Commit

Permalink
return err on set params
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Sep 16, 2024
1 parent 71477cc commit 77bc034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/ibc-rate-limit/ibc_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ func (suite *MiddlewareTestSuite) InstantiateRLContract(quotas string) sdk.AccAd
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})
_ = app.RateLimitingICS4Wrapper.SetParams(suite.ChainA.GetContext(), types.Params{ContractAddress: addrStr})
require.True(suite.ChainA.TB, true)
}

Expand Down
4 changes: 2 additions & 2 deletions x/ibc-rate-limit/ics4_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ func (i *ICS4Wrapper) GetParams(ctx sdk.Context) (params types.Params) {
return params
}

func (i *ICS4Wrapper) SetParams(ctx sdk.Context, params types.Params) {
i.IbcratelimitKeeper.SetParams(ctx, params)
func (i *ICS4Wrapper) SetParams(ctx sdk.Context, params types.Params) error {
return i.IbcratelimitKeeper.SetParams(ctx, params)
}

0 comments on commit 77bc034

Please sign in to comment.