You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// String returns the decimal representation of x as generated by// x.Text(10).func (x*Int) String() string {
returnx.Text(10)
}
// Text returns the string representation of x in the given base.// Base must be between 2 and 62, inclusive. The result uses the// lower-case letters 'a' to 'z' for digit values 10 to 35, and// the upper-case letters 'A' to 'Z' for digit values 36 to 61.// No prefix (such as "0x") is added to the string. If x is a nil// pointer it returns "<nil>".func (x*Int) Text(baseint) string {
ifx==nil {
return"<nil>"
}
returnstring(x.abs.itoa(x.neg, base))
}
The text was updated successfully, but these errors were encountered:
The Cosmos-SDK's empty sdk.Dec (e.g.
sdk.Dec{}
) string form is represented as"<nil>"
(proof below).However, FPDecimals'
from_str
method won't be able to convert this value.cw-injective/packages/injective-math/src/fp_decimal/from_str.rs
Lines 10 to 45 in 09b1925
Should we handle this case? If so, how? @DrunkRandomWalker @gorgos
Proof:
and big.Int's String method is simply
The text was updated successfully, but these errors were encountered: