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
--> 68e55186f027747bc6ac19951ecce3038f60fcf65f151b0ceb558b34bdc0af9c:9:23
|
9 | let sentVault: @FungibleToken.Vault
| ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}`
error: cannot find type in this scope: `AuthAccount`
--> 68e55186f027747bc6ac19951ecce3038f60fcf65f151b0ceb558b34bdc0af9c:12:24
|
12 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> 68e55186f027747bc6ac19951ecce3038f60fcf65f151b0ceb558b34bdc0af9c:28:45
|
28 | let receiverRef = recipientAccount.getCapability(/public/flowTokenReceiver)
| ^^^^^^^^^^^^^ unknown member
error: value of type `&Account` has no member `getCapability`
--> 68e55186f027747bc6ac19951ecce3038f60fcf65f151b0ceb558b34bdc0af9c:32:51
|
32 | let collectionCap = recipientAccount.getCapability<&{Domains.CollectionPublic}>(Domains.CollectionPublicPath)
| ^^^^^^^^^^^^^ unknown member
error: mismatched types
--> 68e55186f027747bc6ac19951ecce3038f60fcf65f151b0ceb558b34bdc0af9c:52:48
|
52 | defaultDomain!.depositVault(from: <- self.sentVault, senderRef: self.senderRef)
| ^^^^^^^^^^^^^^^^^ expected `{FungibleToken.Vault}`, got `FungibleToken.Vault`