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

Test: add unit tests for decorators #182

Merged
merged 12 commits into from
Apr 22, 2024
Merged

Test: add unit tests for decorators #182

merged 12 commits into from
Apr 22, 2024

Conversation

tuantran1702
Copy link
Collaborator

No description provided.

if !feeCoins.IsAnyGTE(nonZeroCoinFeesReq) {
err := sdkerrors.Wrapf(errorstypes.ErrInsufficientFee, "insufficient fees; got: %s required: %s", feeCoins, feeRequired)
if !feeCoinsNonZeroDenom.IsAnyGTE(nonZeroCoinFeesReq) {
err := sdkerrors.Wrapf(errorstypes.ErrInsufficientFee, "insufficient fees; got: %s required: %s", feeCoinsNonZeroDenom, nonZeroCoinFeesReq)
Copy link
Collaborator Author

@tuantran1702 tuantran1702 Apr 8, 2024

Choose a reason for hiding this comment

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

feeCoins is the initial fees(which might be an ibc denom), so when compare to nonZeroCoinFeeReq, which are the amount of fee required in native token, would fail if provided fee is IBC denom. feeCoinsNonZeroDenom is calculated from feeCoins and TwapPrices here, and also alway in native denom, so have to use it instead.

@tuantran1702 tuantran1702 marked this pull request as ready for review April 8, 2024 10:14
@tuantran1702 tuantran1702 enabled auto-merge (squash) April 17, 2024 09:37
Copy link
Collaborator

@tnv1 tnv1 left a comment

Choose a reason for hiding this comment

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

LGTM

@tuantran1702 tuantran1702 merged commit f2241e6 into main Apr 22, 2024
13 checks passed
@tuantran1702 tuantran1702 deleted the tuan/add-ante-test branch April 22, 2024 07:44
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.

2 participants