Error
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: missing resource annotation: `@` --> f16376140715b8557872122854b7d9b04ba450610323d62258cb5cf7a501f60d:8:33 | 8 | if signer.storage.borrow<TitPalacePortraits.Collection>(from: TitPalacePortraits.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: mismatched types --> f16376140715b8557872122854b7d9b04ba450610323d62258cb5cf7a501f60d:8:33 | 8 | if signer.storage.borrow<TitPalacePortraits.Collection>(from: TitPalacePortraits.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Any`, got `TitPalacePortraits.Collection` error: loss of resource --> f16376140715b8557872122854b7d9b04ba450610323d62258cb5cf7a501f60d:8:11 | 8 | if signer.storage.borrow<TitPalacePortraits.Collection>(from: TitPalacePortraits.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: too few arguments --> f16376140715b8557872122854b7d9b04ba450610323d62258cb5cf7a501f60d:10:30 | 10 | let collection <- TitPalacePortraits.createEmptyCollection() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at least 1, got 0Loading...