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
--> a5d8ec4859ec6c88c33910eb8e7541274fec3f15d9ed580d65fd03de8182c1fd:11:22
|
11 | let transferVault: @FungibleToken.Vault?
| ^^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault?`; consider using `{FungibleToken.Vault}?`
error: value of type `&Account` has no member `capabilites`
--> a5d8ec4859ec6c88c33910eb8e7541274fec3f15d9ed580d65fd03de8182c1fd: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
--> a5d8ec4859ec6c88c33910eb8e7541274fec3f15d9ed580d65fd03de8182c1fd: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`
--> a5d8ec4859ec6c88c33910eb8e7541274fec3f15d9ed580d65fd03de8182c1fd:43:6
|
43 | .capibilites.get(/public/flowTokenReceiver)!
| ^^^^^^^^^^^ unknown member