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: cannot access `unpublish`: function requires `Capabilities | UnpublishCapability` authorization, but reference only has `BorrowValue, IssueStorageCapabilityController, PublishCapability, SaveValue` authorization
--> 6ccb50456dc345afab40deaed52e54f5064cc0de864100984677742821b47cb1:62:3
|
62 | receiver.capabilities.unpublish(collectionData.publicPath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `i`
--> 6ccb50456dc345afab40deaed52e54f5064cc0de864100984677742821b47cb1:83:157
|
83 | let metadata=KARAT2QMAWWSBT.Metadata(name: name, artist: artist, artistAddress: artistAddress, description: description, type: typeID, serialId: i, royalty: royalty)
| ^ not found in this scope