Skip to content

Comments

Update initialize-account to latest ExampleNFT#5

Open
kmcintyre wants to merge 3 commits intodapperlabs:masterfrom
Concept-Art-House:initialize-account-edit
Open

Update initialize-account to latest ExampleNFT#5
kmcintyre wants to merge 3 commits intodapperlabs:masterfrom
Concept-Art-House:initialize-account-edit

Conversation

@kmcintyre
Copy link

@kmcintyre kmcintyre commented Apr 22, 2022

based on the latest/greatest https://github.com/onflow/flow-nft/blob/master/contracts/ExampleNFT.cdc

I get the following error based on testnet.env config value NFTContractName=UFC_FIGHTER_NFT

thrown: "execution error code 1101: [Error Code: 1101] cadence runtime error Execution failed:
error: cannot find type in this scope: `UFC_FIGHTER_NFT.CollectionPublic`
  --> 5475b9baf61c442179fba452771c410d413477d2b66d43cefb993492625a6864:10:29
   |
10 |             collector.link<&{UFC_FIGHTER_NFT.CollectionPublic}>(
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error: ambiguous restricted type
  --> 5475b9baf61c442179fba452771c410d413477d2b66d43cefb993492625a6864:10:28
   |
10 |             collector.link<&{UFC_FIGHTER_NFT.CollectionPublic}>(
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
  --> 5475b9baf61c442179fba452771c410d413477d2b66d43cefb993492625a6864:10:12
   |
10 |             collector.link<&{UFC_FIGHTER_NFT.CollectionPublic}>(
   |             ^
"

I made edits to the template because I believe we'd want the link to be to UFC_FIGHTER_NFT.UFC_FIGHTER_NFTCollectionPublic over NonFungibleToken.CollectionPublic

@kmcintyre kmcintyre requested a review from a team as a code owner April 22, 2022 23:13
@kmcintyre kmcintyre changed the title Update to latest ExampleNFT Update initialize-account to latest ExampleNFT Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant