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
--> 7995365bfdfa479279c620924fd806db50cd79433d4ab6e81b8ee8f1feb044c8:8:27
|
8 | let sentVault: @FungibleToken.Vault
| ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}`
error: cannot find type in this scope: `AuthAccount`
--> 7995365bfdfa479279c620924fd806db50cd79433d4ab6e81b8ee8f1feb044c8:10:28
|
10 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> 7995365bfdfa479279c620924fd806db50cd79433d4ab6e81b8ee8f1feb044c8:26:44
|
26 | let receiverRef = recipient.getCapability(/public/flowTokenReceiver)!.borrow<&{FungibleToken.Receiver}>()
| ^^^^^^^^^^^^^ unknown member