将(img+json)对上载到Solana Devnet时出错



我正试图使用带有糖果机v2 的Solana devnet上传NFT资产

这是我运行的命令

ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload -e devnet -k ~/.config/solana/devnet.json -cp config.json ./assets

当我运行上面的命令时,我会收到以下错误消息:

Beginning the upload for 7 (img+json) pairs
started at: 1644272598092
initializing candy machine
Error deploying config to Solana network. RangeError: indeterminate span
at Structure.getSpan (/Users/dlku/metaplex-foundation/metaplex/js/node_modules/buffer-layout/lib/Layout.js:1221:13)
at Structure.encode (/Users/dlku/metaplex-foundation/metaplex/js/node_modules/buffer-layout/lib/Layout.js:1267:23)
at InstructionCoder._encode (/Users/dlku/metaplex-foundation/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/coder/instruction.ts:85:24)

其他人遇到过这个问题吗?如有任何帮助,将不胜感激

下面是json数据的一个示例:

{
"name":"NFT NAME",  
"symbol": "NN",
"description": "My collection",
"image": "7.png",
"properties": {
"creators": [{"address": "00x00x00x00x000x00x00x", "share": 100}],
"files": [{"uri": "7.png", "type": "image/png"}]
}
}

这是配置:

{
"price": 0.50,
"number": 10,
"solTreasuryAccount":
"00x00x000x0x000x00x00x000x0000x00x00",
"storage": "arweave"
}

类似的问题,但没有解决我的问题:

  • 4个月前
  • 1个月前
  • github

显然许多用户对devnet 有问题

因此,截至2022年3月7日,devnet正在运行,建议使用RPC

相关内容

  • 没有找到相关文章

最新更新