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
{{ message }}
This repository was archived by the owner on Mar 16, 2023. It is now read-only.
The token property of a ZkAsset should accurately report information on the linked token, e.g. name, symbol, decimals.
Current Behaviour
All linked tokens are reported to have a value of "0" for decimals and an empty string for name (symbol isn't included).
I'm trying to display a ZkAsset's balance in terms of its equivalent value in public tokens so I need to know the value of decimals. Currently this requires me to independently spin up a ERC20 contract instance to call these methods which, while definitely doable, isn't ideal.
Possible Solution
On instantiation of a ZkAsset with a linked token, these properties should be automatically queried and stored.