Cannot mint Kitty Items on emulator
See original GitHub issueDescribe 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:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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
@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