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