-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
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) |
There was a problem hiding this comment.
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.
f324217
to
639167f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.