Closed freak12techno closed 4 months ago
The recent changes improve the DenomInfo
struct in the DisplayWarnings
method by adding a condition to check if CoingeckoCurrency
is empty and Ignore
is false before appending a warning message. New test functions were also introduced to ensure the correct behavior of these modifications, enhancing the validation and warning display mechanisms for DenomInfo
.
Files | Summary |
---|---|
pkg/config/denom_info.go |
Added a condition to check if CoingeckoCurrency is empty and Ignore is false in the DisplayWarnings method. |
pkg/config/denom_info_test.go |
Added TestDenomInfoValidateNoDisplayDenomIgnored and TestDenomInfoDisplayWarningNoCoingeckoDisabled to test new scenarios. |
A Denom’s tale, with warnings keen,
Where checks for Coingecko now are seen,
If currency is nil and ignore not set,
A warning message you will get.
Amidst the tests, validations fly,
Ensuring code does rightly comply.
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
1f51763
) to head (18be41a
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit
Bug Fixes
CoingeckoCurrency
is empty andIgnore
is false.Tests
DenomInfo
warnings and ignore conditions.