let collection <- Ezy3dItems.createEmptyCollection()
signer.save(<-collection, to: Ezy3dItems.CollectionStoragePath)
...
'''
error info:
[Error Code: 1101] cadence runtime error Execution failed:
error: [Error Code: 1054] location (/contracts/NonFungibleToken.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed
--> /contracts/NonFungibleToken.cdc
error: [Error Code: 1054] location (/contracts/Ezy3dItems.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed
--> /contracts/Ezy3dItems.cdc
code:
setup_account_tx_code = ''' import NonFungibleToken from "/contracts/NonFungibleToken.cdc" import Ezy3dItems from "/contracts/Ezy3dItems.cdc"
transaction { prepare(signer: AuthAccount) { if signer.borrow<&Ezy3dItems.Collection>(from: Ezy3dItems.CollectionStoragePath) == nil {
'''
error info:
[Error Code: 1101] cadence runtime error Execution failed: error: [Error Code: 1054] location (/contracts/NonFungibleToken.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed --> /contracts/NonFungibleToken.cdc
error: [Error Code: 1054] location (/contracts/Ezy3dItems.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed --> /contracts/Ezy3dItems.cdc