dkku
dkku

Reputation: 11

Error while uploading (img+json) pairs on to Solana Devnet

I'm trying to upload NFT assets using the Solana devnet with candy machine v2

This is the command that I am running

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

when I run the command above, I get this error message:

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)

Has anyone else ran into this issue ? Any help would be appreciated

Here's an example of the json data:

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

and this is the config:

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

similar questions but didn't solve my issue:

Upvotes: 0

Views: 477

Answers (1)

piña
piña

Reputation: 3982

Apparently many users are having issue with devnet

So as of March 7 2022 devnet is acting up , it'd recommend using an RPC

Upvotes: 1

Related Questions