薄荷NFT系列从0到9999

发布于 2025-01-23 05:14:42 字数 620 浏览 2 评论 0原文

我创建了我的集合,收藏集从0到9999,但是当我从数字1而不是

我的json文件的示例造成薄荷

  {
    "name": " #0",
    "description": "NFT TEST",
    "image": "ipfs://NewUriToReplace/0.png",
    "attributes": [
      {
        "trait_type": "Background",
        "value": "Orange"
      },
      {
        "trait_type": "Eyeball",
        "value": "Red"
      },
      {
        "trait_type": "Eye color",
        "value": "Yellow"
      }
   ],
    "dna": "51dde0558661708099f7575da644987b7b746792",
    "edition": 0,
    "external_url": "https://evtest.com",
    "date": 1650569986394,
    "compiler": "EV Compiler"
  },```

i created my collection and the collection starts from 0 to 9999 but when i mint it mints from number 1 not 0

example of my json file

  {
    "name": " #0",
    "description": "NFT TEST",
    "image": "ipfs://NewUriToReplace/0.png",
    "attributes": [
      {
        "trait_type": "Background",
        "value": "Orange"
      },
      {
        "trait_type": "Eyeball",
        "value": "Red"
      },
      {
        "trait_type": "Eye color",
        "value": "Yellow"
      }
   ],
    "dna": "51dde0558661708099f7575da644987b7b746792",
    "edition": 0,
    "external_url": "https://evtest.com",
    "date": 1650569986394,
    "compiler": "EV Compiler"
  },```

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

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

发布评论

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

评论(1

廻憶裏菂餘溫 2025-01-30 05:14:42

因此,创建元数据和NFTS的图像不会从0到9999开始,我修改了“ main.js”文件,以从1到10000开始。只需在文件夹中查找此文件,要创建NFT,请打开它,您必须查找以下代码的一部分:

const startCreating = async () => {
  let layerConfigIndex = 0;
  let editionCount = 1;
  let failedCount = 0;
  let abstractedIndexes = [];
  for (
    let i = network == NETWORK.sol ? 0 : 0;
    i <= layerConfigurations[layerConfigurations.length - 1].growEditionSizeTo;
    i++
  ) {
    abstractedIndexes.push(i);
  }

现在让“让i =网络== network.sol?sol?0:0;”的部分;是用1替换第二个0。这就是代码的外观。

const startCreating = async () => {
  let layerConfigIndex = 0;
  let editionCount = 1;
  let failedCount = 0;
  let abstractedIndexes = [];
  for (
    let i = network == NETWORK.sol ? 0 : 1;
    i <= layerConfigurations[layerConfigurations.length - 1].growEditionSizeTo;
    i++
  ) {
    abstractedIndexes.push(i);
  }

这样,NFTS的创建将从1开始,以10,000结束。

So that the creation of the metadata and images of the NFTs does not start at 0 to 9999, I modified the "main.js" file so that it starts from 1 to 10000. Just look for this file in the folder that makes it possible to create the NFTs, open it and you have to look for a section of the code that is the following:

const startCreating = async () => {
  let layerConfigIndex = 0;
  let editionCount = 1;
  let failedCount = 0;
  let abstractedIndexes = [];
  for (
    let i = network == NETWORK.sol ? 0 : 0;
    i <= layerConfigurations[layerConfigurations.length - 1].growEditionSizeTo;
    i++
  ) {
    abstractedIndexes.push(i);
  }

Now let the part where "let i = network == NETWORK.sol ? 0 : 0;" is replace the second 0 with a 1. This is how the code should look.

const startCreating = async () => {
  let layerConfigIndex = 0;
  let editionCount = 1;
  let failedCount = 0;
  let abstractedIndexes = [];
  for (
    let i = network == NETWORK.sol ? 0 : 1;
    i <= layerConfigurations[layerConfigurations.length - 1].growEditionSizeTo;
    i++
  ) {
    abstractedIndexes.push(i);
  }

In this way the creation of the NFTs will start at 1 and end at 10,000.

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