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