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
--> 84787d0156ffe47ad5bcf8b2d771c4e2361f1484b7fe08e4fb92bb725233c201:8:19
|
8 | let sentVault: @FungibleToken.Vault
| ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}`
error: cannot find type in this scope: `AuthAccount`
--> 84787d0156ffe47ad5bcf8b2d771c4e2361f1484b7fe08e4fb92bb725233c201:11:20
|
11 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> 84787d0156ffe47ad5bcf8b2d771c4e2361f1484b7fe08e4fb92bb725233c201:27:41
|
27 | let receiverRef = recipientAccount.getCapability(/public/flowTokenReceiver)
| ^^^^^^^^^^^^^ unknown member
error: value of type `&Account` has no member `getCapability`
--> 84787d0156ffe47ad5bcf8b2d771c4e2361f1484b7fe08e4fb92bb725233c201:31:47
|
31 | let collectionCap = recipientAccount.getCapability<&{Domains.CollectionPublic}>(Domains.CollectionPublicPath)
| ^^^^^^^^^^^^^ unknown member
error: mismatched types
--> 84787d0156ffe47ad5bcf8b2d771c4e2361f1484b7fe08e4fb92bb725233c201:51:44
|
51 | defaultDomain!.depositVault(from: <- self.sentVault, senderRef: self.senderRef)
| ^^^^^^^^^^^^^^^^^ expected `{FungibleToken.Vault}`, got `FungibleToken.Vault`