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
--> 09a425187ed041ba0030120f907ef6de57311b9b42184287a3b4214f6ac926d4:62:3
|
62 | receiver.capabilities.unpublish(collectionData.publicPath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `i`
--> 09a425187ed041ba0030120f907ef6de57311b9b42184287a3b4214f6ac926d4: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