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
--> dd94c7019b5fd80c3befaabe709c8a70e1def0ff1d71a6bea212294ffd95ad58:10:38
|
10 | let collectionRef = acct.borrow<&ZeedzINO.ZeedzCollectionPublic>(from: catalog.collectionData.storagePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ got `&ZeedzINO.ZeedzCollectionPublic`; consider using `&AnyResource{ZeedzINO.ZeedzCollectionPublic}`
error: value of type `&ZeedzINO.ZeedzCollectionPublic` has no member `withdraw`
--> dd94c7019b5fd80c3befaabe709c8a70e1def0ff1d71a6bea212294ffd95ad58:12:42
|
12 | self.transferToken <- collectionRef.withdraw(withdrawID: tokenId)
| ^^^^^^^^ unknown member
error: invalid use of interface as type
--> dd94c7019b5fd80c3befaabe709c8a70e1def0ff1d71a6bea212294ffd95ad58:17:41
|
17 | let receiver = acct2.getCapability<&ZeedzINO.ZeedzCollectionPublic>(catalog.collectionData.publicPath).borrow()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ got `&ZeedzINO.ZeedzCollectionPublic`; consider using `&AnyResource{ZeedzINO.ZeedzCollectionPublic}`