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
The current approach of creating lots of objects is not very pythonic. It would be preferable, if instead we had a way of using dick-typing and methods + keyword arguments to set things up.
Where the method handles the conversion of the shorthand notation of "q" into Quantity, mintable=True into Mintable.Infinitely and not specifying them creates an asset with sensible defaults (which are Quantity and Mintable.Infinitely).
We can also treat the rust FromStr methods to do the conversion in place.
The text was updated successfully, but these errors were encountered:
The current approach of creating lots of objects is not very pythonic. It would be preferable, if instead we had a way of using dick-typing and methods + keyword arguments to set things up.
Example
As of today our example contains the following:
In reality what we should have
Where the method handles the conversion of the shorthand notation of
"q"
intoQuantity
,mintable=True
intoMintable.Infinitely
and not specifying them creates an asset with sensible defaults (which areQuantity
andMintable.Infinitely
).We can also treat the rust
FromStr
methods to do the conversion in place.The text was updated successfully, but these errors were encountered: