Last active
November 17, 2018 17:31
-
-
Save josephros/277f94adc0faaf5dd3174b3a16c98033 to your computer and use it in GitHub Desktop.
Query ETHEREST for tokenvalue demo script data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
var [name, symbol, decimals, balance] = await Promise.all([ | |
token.name(), | |
token.symbol(), | |
token.decimals(), | |
token.balanceOf(argv[1]) | |
]); | |
} catch (err) { | |
throw "Could not get required data from token contract"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment