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: too many arguments
--> 01e1bf6ef6669490d25fea6cae73cacb006e3c2c27f96dacb3b18e4c5a5e688a:40:27
|
40 | let collectionData = NFTCatalog.NFTCollectionData(
41 | storagePath: cdata.storagePath,
42 | publicPath: cdata.publicPath,
43 | privatePath: PrivatePath(identifier: "foo")!,
44 | publicLinkedType : cdata.publicLinkedType,
45 | privateLinkedType : Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>()
46 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected up to 3, got 5
error: mismatched types
--> 01e1bf6ef6669490d25fea6cae73cacb006e3c2c27f96dacb3b18e4c5a5e688a:43:23
|
43 | privatePath: PrivatePath(identifier: "foo")!,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Type?`, got `PrivatePath?`
error: incorrect argument label
--> 01e1bf6ef6669490d25fea6cae73cacb006e3c2c27f96dacb3b18e4c5a5e688a:43:10
|
43 | privatePath: PrivatePath(identifier: "foo")!,
| ^^^^^^^^^^^^ expected `publicLinkedType`, got `privatePath`
error: cannot access `setCurrentProposalEntry`: function requires `ProposalActionOwner` authorization, but reference is unauthorized
--> 01e1bf6ef6669490d25fea6cae73cacb006e3c2c27f96dacb3b18e4c5a5e688a:65:6
|
65 | self.nftCatalogProposalResourceRef.setCurrentProposalEntry(identifier : collectionIdentifier)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot access `setCurrentProposalEntry`: function requires `ProposalActionOwner` authorization, but reference is unauthorized
--> 01e1bf6ef6669490d25fea6cae73cacb006e3c2c27f96dacb3b18e4c5a5e688a:69:6
|
69 | self.nftCatalogProposalResourceRef.setCurrentProposalEntry(identifier : nil)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^