Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: invalid use of interface as type
--> a5f3ce9e1884f32e7529eb3fb6b8b684f13e92b110fb947dee470bac3ac46bdd:7:23
|
7 | let sentVault: @FungibleToken.Vault
| ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}`
error: cannot find type in this scope: `AuthAccount`
--> a5f3ce9e1884f32e7529eb3fb6b8b684f13e92b110fb947dee470bac3ac46bdd:9:24
|
9 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> a5f3ce9e1884f32e7529eb3fb6b8b684f13e92b110fb947dee470bac3ac46bdd:25:40
|
25 | let receiverRef = recipient.getCapability(/public/sdmTokenReceiver)
| ^^^^^^^^^^^^^ unknown member