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
--> b8112beeb09eb326333547b090cb6f2753cb8c59d2ecf3d9bd73c6b1157b2ac9:11:22
|
11 | let transferVault: @FungibleToken.Vault?
| ^^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault?`; consider using `{FungibleToken.Vault}?`
error: value of type `&Account` has no member `capabilites`
--> b8112beeb09eb326333547b090cb6f2753cb8c59d2ecf3d9bd73c6b1157b2ac9:18:68
|
18 | self.receiverCollection = getAccount(receiverCollectionAddress).capabilites.get<&TrmRentV2_2.Collection>(TrmRentV2_2.collectionPublicPath)
| ^^^^^^^^^^^ unknown member
error: cannot access `withdraw`: function requires `Withdraw` authorization, but reference is unauthorized
--> b8112beeb09eb326333547b090cb6f2753cb8c59d2ecf3d9bd73c6b1157b2ac9:28:27
|
28 | self.transferVault <- adminAccount
29 | .storage.borrow<&{FungibleToken.Provider}>(from: /storage/flowTokenVault)!
30 | .withdraw(amount: UFix64(0.001))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: value of type `&Account` has no member `capibilites`
--> b8112beeb09eb326333547b090cb6f2753cb8c59d2ecf3d9bd73c6b1157b2ac9:43:6
|
43 | .capibilites.get(/public/flowTokenReceiver)!
| ^^^^^^^^^^^ unknown member