Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check fee module locked and enable fee before refunding all fees #1341

Merged
merged 11 commits into from
May 16, 2022
Prev Previous commit
Next Next commit
add test in TestOnChanCloseConfirm
  • Loading branch information
vuong177 committed May 8, 2022
commit 18266004b8e566c8d3bb61e4dde09d666ad81999
12 changes: 12 additions & 0 deletions modules/apps/29-fee/ibc_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,18 @@ func (suite *FeeTestSuite) TestOnChanCloseConfirm() {
},
false,
},
{
"Fee module locked", func() {
seantking marked this conversation as resolved.
Show resolved Hide resolved
lockFeeModule(suite.chainA)
},
false,
},
{
"Fee module not enable", func() {
vuong177 marked this conversation as resolved.
Show resolved Hide resolved
suite.chainA.GetSimApp().IBCFeeKeeper.DeleteFeeEnabled(suite.chainA.GetContext(), suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID)
},
false,
colin-axner marked this conversation as resolved.
Show resolved Hide resolved
},
}

for _, tc := range testCases {
Expand Down