set_collection Candy Machine v2期间无效的薄荷所有者

发布于 2025-02-03 12:58:51 字数 1955 浏览 6 评论 0 原文

我试图用糖果机铸造一些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文件中指定的一个名称不同

i was trying to mint some nfts with candy machine but when i try to execute:

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

I got this error:

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)

Someone knows why? I have tried putting a different address from the one with that i have created the candymachine and with I made the upload or also the same but the issue is the same, maybe there is something wrong with it or with other things?

This is an example of my 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"
    }
}

If i upload without execute set_collections it works but with a different name of the collection from the one specified in the jsons file

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

提笔书几行 2025-02-10 12:58:51

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 same updateAuthority 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 pubkey GM1ByqbTfgRwXEQCLJ2N4bsA3P1WcuyL9kZT79gLqYuE. The NFT has updateAuthority 42NevAWA6A8m9prDvZRUYReQmhNC3NtSZQNFUppPJDRB 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文