Skip to content

Instantly share code, notes, and snippets.

@vlzhr
Created May 20, 2020 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlzhr/45e702e8eb458f0d793a3d81327cbf15 to your computer and use it in GitHub Desktop.
Save vlzhr/45e702e8eb458f0d793a3d81327cbf15 to your computer and use it in GitHub Desktop.
Ride assetInfo example
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