Created
May 20, 2020 15:34
-
-
Save vlzhr/45e702e8eb458f0d793a3d81327cbf15 to your computer and use it in GitHub Desktop.
Ride assetInfo example
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
let bitcoinId = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' | |
let x = match assetInfo(bitcoinId) { | |
case asset:Asset => | |
asset.name # bitcoin | |
case _ => throw("Can't find asset") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment