-
Notifications
You must be signed in to change notification settings - Fork 41
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
BE-239 - Include mint price denom among mint event attributes for minter-wl-flex #630
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #630 +/- ##
=======================================
Coverage 60.07% 60.07%
=======================================
Files 83 83
Lines 4518 4518
=======================================
Hits 2714 2714
Misses 1804 1804 ☔ View full report in Codecov by Sentry. |
Cosm-Orc Gas Usage
Raw Report for b9c81d1
|
.add_attribute("seller_amount", seller_amount)) | ||
.add_attribute( | ||
"network_fee", | ||
coin(network_fee.u128(), mint_price.clone().denom).to_string(), |
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.
I don't think we need to change network fee if it is a coin already the to_string() implementation should be including amount and denom
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.
network_fee
is only a Uint128 here I am afraid.
.add_attribute("mint_price", mint_price.to_string()) | ||
.add_attribute( | ||
"seller_amount", | ||
coin(seller_amount.u128(), mint_price.denom).to_string(), |
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.
same here no need to do coin(..)
again
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.
Same for seller_amount
, it's a Uint128.
"network_fee", | ||
coin(network_fee.u128(), mint_price.clone().denom).to_string(), | ||
) | ||
.add_attribute("mint_price", mint_price.to_string()) |
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.
this looks good although not sure if to_string is necessary
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.
Receiving a the trait From<Coin> is not implemented for std::string::String
error otherwise.
No description provided.