question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot mint Kitty Items on emulator

See original GitHub issue

Describe the bug Fresh KI installation, log in to service account and complete initialization. Go to the minting page (http://localhost:3001/admin/mint/). click mint.

The UI doesn’t show an error but the “transaction sealed” status never changes. The console shows this error:

useMintAndList.js?0e5d:11 Uncaught (in promise) execution error code 1101: [Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
  --> 77320623f6e7242b82c227af9a1bc7a1f9f546a8d5cf001f104ad74fcefd973b:56:70
   |
56 |         let result = self.minter.mintNFT(recipient: receiver, typeID: typeID, rarityID: rarityID)
   |                                                                       ^^^^^^ expected `KittyItems.Kind`, got `UInt64`

error: mismatched types
  --> 77320623f6e7242b82c227af9a1bc7a1f9f546a8d5cf001f104ad74fcefd973b:56:88
   |
56 |         let result = self.minter.mintNFT(recipient: receiver, typeID: typeID, rarityID: rarityID)
   |                                                                                         ^^^^^^^^ expected `KittyItems.Rarity`, got `UInt64`

error: incorrect argument label
  --> 77320623f6e7242b82c227af9a1bc7a1f9f546a8d5cf001f104ad74fcefd973b:56:62
   |
56 |         let result = self.minter.mintNFT(recipient: receiver, typeID: typeID, rarityID: rarityID)
   |                                                               ^^^^^^ expected `kind`, got `typeID`

error: incorrect argument label
  --> 77320623f6e7242b82c227af9a1bc7a1f9f546a8d5cf001f104ad74fcefd973b:56:78
   |
56 |         let result = self.minter.mintNFT(recipient: receiver, typeID: typeID, rarityID: rarityID)
   |                                                                               ^^^^^^^^ expected `rarity`, got `rarityID`

error: cannot access `itemRarityPriceMap`: field has private access
  --> 77320623f6e7242b82c227af9a1bc7a1f9f546a8d5cf001f104ad74fcefd973b:61:20
   |
61 |             amount: KittyItems.itemRarityPriceMap[rarityID]!
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: mismatched types
  --> 77320623f6e7242b82c227af9a1bc7a1f9f546a8d5cf001f104ad74fcefd973b:61:50
   |
61 |             amount: KittyItems.itemRarityPriceMap[rarityID]!
   |                                                   ^^^^^^^^ expected `KittyItems.Rarity`, got `UInt64`

Expected behavior Minting works without any errors

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alxflwcommented, Feb 3, 2022

Or you can try to start with: ‘docker-compose --env-file .env.dev --profile dev up -d --build’

wow, that actually resolved the issue for me. thanks @bluesign!

I wonder how common this might be? worth adding a troubleshooting section to the readme? if not, please close @10thfloor

1reaction
bluesigncommented, Feb 3, 2022

@alxflw Your api is probably out of date, clean docker images.

Or you can try to start with: ‘docker-compose --env-file .env.dev --profile dev up -d --build’

Let me know if it helps, if not I can try to help you debug more

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modify | Flow Blockchain
First, open the Kitty Items admin dashboard . Keep in mind that the password is KittyItems . admin-ui. Now, hit the "Mint Item"...
Read more >
onflow/kitty-items: Kitty Items: CryptoKitties Sample App - GitHub
The API demonstrates how to send transactions to the Flow blockchain, specifically for minting Kitty Items (non-fungible tokens).
Read more >
Install kitty - Kovid Goyal
The installer only touches files in that directory. To update kitty, simply re-run the command. Do not copy the kitty binary out of...
Read more >
Mint: genymotion installation bug - android - Stack Overflow
It may be a problem of your Linux OS and Genymotion compatibility. Check version of your Linux using command in terminal: inxi -S....
Read more >
Emulation on linux - Reddit
There are no good options, to store the emulators on an external drive, ... New comments cannot be posted and votes cannot be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found