-
Notifications
You must be signed in to change notification settings - Fork 351
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
Decimal constructor is private #1155
Comments
This was referenced Nov 1, 2021
cosmwasm/packages/std/src/math/decimal.rs Lines 54 to 104 in a0cf296
|
A raw constructor from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The comment on the
Mul
implementation saysbut the constructor
Decimal(_)
is private.Because of this there is also no way to construct a decimal statically, let's say if I wanted to I pre-calculate some constants at compile time and I already pre-scaled the value correctly, i.e.
and it's impossible to convert a raw u128 value without going through
from_ratio
:The text was updated successfully, but these errors were encountered: