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