Skip to content

Instantly share code, notes, and snippets.

@da-blog
Created August 1, 2023 16:28
Show Gist options
  • Save da-blog/055ea0c9f8eaa13b50801380064d1528 to your computer and use it in GitHub Desktop.
Save da-blog/055ea0c9f8eaa13b50801380064d1528 to your computer and use it in GitHub Desktop.
transferAsset: ContractId Asset -> Party -> Update (ContractId Asset)
transferAsset assetCid recipient = do
asset <- fetch assetCid
archive assetCid
create asset with
owner = recipient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment