Update Readme.md

Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
This commit is contained in:
Adam Uhlíř 2024-11-04 14:42:54 +01:00
parent 2af80a6ae6
commit 890ceee0c2
No known key found for this signature in database
GPG Key ID: 1D17A9E81F76155B

View File

@ -134,6 +134,8 @@ instance.
proc handleTransfer(transferResult: ?!Transfer) =
if transferResult.isOk:
echo "received transfer: ", transferResult.value
else:
echo "error during transfer: ", transferResult.error.msg
let subscription = await token.subscribe(Transfer, handleTransfer)
```