aragon / radspec

🤘 Radspec is a safe interpreter for Ethereum's NatSpec
MIT License
141 stars 36 forks source link

Add token symbol fallback for `tokenAmount()` helper #53

Closed sohkai closed 5 years ago

sohkai commented 5 years ago

See https://github.com/aragon/radspec/blob/master/src/helpers/tokenAmount.js#L31

Similar to https://github.com/aragon/aragon-apps/issues/561, we should add fallbacks as:

  1. A bytes32 attempt for token.symbol(), and
  2. A hardcoded list based on network