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
--> 6603d4a9c8800dc09ce540708171ea96b7199a7ca2b13ab45f08567561897af7:7:23
|
7 | let sentVault: @FungibleToken.Vault
| ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}`
error: cannot find type in this scope: `AuthAccount`
--> 6603d4a9c8800dc09ce540708171ea96b7199a7ca2b13ab45f08567561897af7:9:24
|
9 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> 6603d4a9c8800dc09ce540708171ea96b7199a7ca2b13ab45f08567561897af7:25:40
|
25 | let receiverRef = recipient.getCapability(/public/sdmTokenReceiver)
| ^^^^^^^^^^^^^ unknown member