set_collection Candy Machine v2期间无效的薄荷所有者
我试图用糖果机铸造一些NFT,但是当我尝试执行时:
ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts set_collection \
-e devnet \
-k ~/.config/solana/devnet.json \
-c example \
-m C2eGm8iQPnKVWxakyo8QhwJUvYrZHKF52DPQuAejpTWG
我有一个错误:
throw new Error(`Invalid mint owner: ${JSON.stringify(info.owner)}`);
^
Error: Invalid mint owner: "11111111111111111111111111111111"
at Token.getMintInfo (/Users/btk-macmini-01/Desktop/repo/peppermint/docs/metaplex/js/node_modules/@solana/spl-token/client/token.js:731:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async parseCollectionMintPubkey (/Users/btk-macmini-01/Desktop/repo/peppermint/docs/metaplex/js/packages/cli/src/helpers/various.ts:438:5)
at async Command.<anonymous> (/Users/btk-macmini-01/Desktop/repo/peppermint/docs/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:941:34)
有人知道为什么吗?我试图在与我创建的糖果蛋白的地址上放置不同的地址,并且我进行了上传或同样的地址,但是问题是相同的,也许它有问题或其他东西有问题吗?
这是我的JSON的一个示例:
{
"name": "#1",
"description": "description",
"external_url": "",
"image": "0.png",
"attributes": [
{
"trait_type": "Background Color Woman",
"value": "Light Blue"
},
{
"trait_type": "Background color man",
"value": "Metal Grey"
}
],
"properties": {
"files": [
{
"uri": "0.png",
"type": "image/png"
}
],
"creators": [
{
"address": "GM1ByqbTfgRwXEQCLJ2N4bsA3P1WcuyL9kZT79gLqYuE",
"share": 100
}
]
},
"compiler": "https://the-nft-generator.com",
"symbol": "Test",
"collection": {
"name": "test",
"family": "test"
}
}
如果我不执行set_collections上传,则可以使用该集合的名称与JSONS文件中指定的一个名称不同
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
set_collection
用于将收集字段设置为尚未启动薄荷的糖果计算机中的所有NFT(0 Minted NFTS)。要设置一个集合,您可以传递任何具有相同updateAuthority
的NFT(即MastereditionV2),与您用来创建candymachine的钱包。在这种情况下,您正在尝试设置一个使用),您说Ur Cm是用带有PubKey的钱包创建的,该钱包
gm1byqbtfgrwxeqclj2n4bsa3p1wp1wp1wcuyl9kzzt7kzt7kzt7kzt79999999999999999999999999999.GLQYUE。 NFT具有UPDATEAUTHORITY
42Nevawa6a8m9prdvzruyreqmhnc3ntszqnfupppjdrb
,这是您用来创建糖果计算机的完全不同的Pubkey。您始终可以使用 Collection网页。该网页允许您使用某些元数据创建和磨损集合NFT,并且还将迁移(将OnChain Collections更改为新创建的集合)您在网站上传递的NFTS,并且可以随时使用更多NFT进行更新。该网站不会从糖果机迁移未打印的NFT。
如果您想使用
set_collection
请确保在上提供。 M
参数,NFT具有与您的糖果机相同的UpdateAuthority。另外,请确保您的糖果机具有0个铸造的NFT。set_collection
is used to set the collection field to all the nfts inside a Candy machine that has not started the mint (0 minted NFTs). To set a collection you can pass any NFT (that is a masterEditionV2) that has the sameupdateAuthority
as the wallet that you used to create ur CandyMachine.In this case you are trying to set a collection that uses this NFT (
-m C2eGm8iQPnKVWxakyo8QhwJUvYrZHKF52DPQuAejpTWG
), and you said that ur CM was created with the wallet that has pubkeyGM1ByqbTfgRwXEQCLJ2N4bsA3P1WcuyL9kZT79gLqYuE
. The NFT has updateAuthority42NevAWA6A8m9prDvZRUYReQmhNC3NtSZQNFUppPJDRB
and thats a completly different pubkey that the one that you used to create the Candy Machine.You can always use the collection webpage. This webpage allows you to create and mint a collection NFT with certain metadata, and also will migrate (change the onchain collections to the new created collection) the NFTs that you pass on the website and this can be updated at anytime with more NFTs. This website WILL NOT migrate unminted nfts from a candy machine.
If you want to use
set_collection
make sure to provide, on the-m
parameter, an NFT that has the same updateAuthority that ur Candy Machine. Also make sure that your Candy Machine has 0 minted NFTs.