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