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