Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update initialize-account to latest ExampleNFT #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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