[Error Code: 1054] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: [Error Code: 1054] location (undefined) is not a valid location: expecting an AddressLocation, but other location types are passed --> undefined error: cannot find variable in this scope: `aiSportsMinter` --> e3389670b800ac6afa304b30cdbf9dc3184d21a099c15073f472f80d09fe5199:12:29 | 12 | let collectionData = aiSportsMinter.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData? | ^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `aiSportsMinter` --> e3389670b800ac6afa304b30cdbf9dc3184d21a099c15073f472f80d09fe5199:16:34 | 16 | if signer.storage.borrow<&aiSportsMinter.Collection>(from: collectionData.storagePath) != nil { | ^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> e3389670b800ac6afa304b30cdbf9dc3184d21a099c15073f472f80d09fe5199:16:11 | 16 | if signer.storage.borrow<&aiSportsMinter.Collection>(from: collectionData.storagePath) != nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `aiSportsMinter` --> e3389670b800ac6afa304b30cdbf9dc3184d21a099c15073f472f80d09fe5199:21:26 | 21 | let collection <- aiSportsMinter.createEmptyCollection(nftType: Type<@aiSportsMinter.NFT>()) | ^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `aiSportsMinter` --> e3389670b800ac6afa304b30cdbf9dc3184d21a099c15073f472f80d09fe5199:21:78 | 21 | let collection <- aiSportsMinter.createEmptyCollection(nftType: Type<@aiSportsMinter.NFT>()) | ^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> e3389670b800ac6afa304b30cdbf9dc3184d21a099c15073f472f80d09fe5199:21:72 | 21 | let collection <- aiSportsMinter.createEmptyCollection(nftType: Type<@aiSportsMinter.NFT>()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `aiSportsMinter` --> e3389670b800ac6afa304b30cdbf9dc3184d21a099c15073f472f80d09fe5199:28:63 | 28 | let collectionCap = signer.capabilities.storage.issue<&aiSportsMinter.Collection>(collectionData.storagePath) | ^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> e3389670b800ac6afa304b30cdbf9dc3184d21a099c15073f472f80d09fe5199:28:28 | 28 | let collectionCap = signer.capabilities.storage.issue<&aiSportsMinter.Collection>(collectionData.storagePath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Happy diving into the flow Remember to upgrade your contracts to 1.0!