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
--> 02d404700223fbbc7d9b20b4360434962756248ae627deb28866e1e20b160070:6:16
|
6 | let sentVault: @FungibleToken.Vault
| ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}`
error: cannot find type in this scope: `AuthAccount`
--> 02d404700223fbbc7d9b20b4360434962756248ae627deb28866e1e20b160070:7:17
|
7 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `AuthAccount`
--> 02d404700223fbbc7d9b20b4360434962756248ae627deb28866e1e20b160070:8:15
|
8 | let account = AuthAccount(payer: signer)
| ^^^^^^^^^^^ not found in this scope
error: mismatched types
--> 02d404700223fbbc7d9b20b4360434962756248ae627deb28866e1e20b160070:20:34
|
20 | self.tokenReceiver.deposit(from: <-self.sentVault)
| ^^^^^^^^^^^^^^^^ expected `{FungibleToken.Vault}`, got `FungibleToken.Vault`