Skip to content

Conversation

@jewei1997
Copy link
Contributor

@jewei1997 jewei1997 commented Jul 31, 2025

Describe your changes and provide context

These invariant checks are no longer used, so we're deprecating them.

Testing performed to validate your change

N/A

@codecov
Copy link

codecov bot commented Jul 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.25%. Comparing base (e7ad424) to head (8ede500).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #593      +/-   ##
==========================================
- Coverage   54.33%   54.25%   -0.08%     
==========================================
  Files         634      632       -2     
  Lines       55574    55282     -292     
==========================================
- Hits        30194    29992     -202     
+ Misses      23209    23143      -66     
+ Partials     2171     2147      -24     
Files with missing lines Coverage Δ
x/bank/keeper/invariants.go 0.00% <ø> (-44.60%) ⬇️
x/bank/module.go 47.56% <100.00%> (-0.64%) ⬇️
x/distribution/module.go 47.56% <100.00%> (-0.64%) ⬇️
x/gov/module.go 46.00% <100.00%> (-0.54%) ⬇️
x/staking/module.go 51.76% <100.00%> (-0.57%) ⬇️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jewei1997 jewei1997 requested review from codchen and udpatil and removed request for udpatil August 3, 2025 17:42
Comment on lines -25 to -38
return func(ctx sdk.Context) (string, bool) {
res, stop := CanWithdrawInvariant(k)(ctx)
if stop {
return res, stop
}
res, stop = NonNegativeOutstandingInvariant(k)(ctx)
if stop {
return res, stop
}
res, stop = ReferenceCountInvariant(k)(ctx)
if stop {
return res, stop
}
return ModuleAccountInvariant(k)(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we somehow capture these scenarios via unit tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants