简体   繁体   中英

VSC - Can't Build Candy Machine/Metaplex

I am following a tutorial to have my own NFT minting site, but I keep running into an error.

Tutorial link is https://youtu.be/35RO0lAEIxE?t=2876

My issue (first line is the command I typed as per the vid):

C:\Users\dark_\Desktop\Sol\metaplex-master>npx ts-node js/packages/cli/src/candy-machine-cli.ts create_candy_machine --env devnet --keypair ~/.config/solana/devnet.json

    C:\Users\dark_\Desktop\Sol\metaplex-master>npx ts-node js/packages/cli/src/candy-machine-cli.ts create_candy_machine --env devnet --keypair ~/.config/solana/devnet.json
wallet public key: 1WTJHpAHH1j7dLyArZmpfoVZVJN4Gnh1jpGSuPTHQCF
Transaction simulation failed: Error processing Instruction 0: custom program error: 0x139 
    Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ invoke [1]
    Program 11111111111111111111111111111111 invoke [2]
    Program 11111111111111111111111111111111 success
    Program log: Custom program error: 0x139
    Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ consumed 20298 of 200000 compute units
    Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ failed: custom program error: 0x139
Translating error SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x139
    at Connection.sendEncodedTransaction (C:\Users\dark_\Desktop\Sol\metaplex-master\js\node_modules\@solana\web3.js\src\connection.ts:3553:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Connection.sendRawTransaction (C:\Users\dark_\Desktop\Sol\metaplex-master\js\node_modules\@solana\web3.js\src\connection.ts:3513:20)
    at async sendAndConfirmRawTransaction (C:\Users\dark_\Desktop\Sol\metaplex-master\js\node_modules\@solana\web3.js\src\util\send-and-confirm-raw-transaction.ts:27:21)  
    at async Provider.send (C:\Users\dark_\Desktop\Sol\metaplex-master\js\packages\cli\node_modules\@project-serum\anchor\src\provider.ts:114:18)
    at async Object.rpc [as initializeCandyMachine] (C:\Users\dark_\Desktop\Sol\metaplex-master\js\packages\cli\node_modules\@project-serum\anchor\src\program\namespace\rpc.ts:19:23) {
  logs: [
    'Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ invoke [1]',
    'Program 11111111111111111111111111111111 invoke [2]',
    'Program 11111111111111111111111111111111 success',
    'Program log: Custom program error: 0x139',
    'Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ consumed 20298 of 200000 compute units',
    'Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ failed: custom program error: 0x139'
  ]
}
C:\Users\dark_\Desktop\Sol\metaplex-master\js\packages\cli\node_modules\@project-serum\anchor\src\error.ts:35
      return new ProgramError(errorCode, errorMsg, errorCode + ": " + errorMsg);
             ^
ProgramError: 313: Number of config lines must be at least number of items available
    at Function.parse (C:\Users\dark_\Desktop\Sol\metaplex-master\js\packages\cli\node_modules\@project-serum\anchor\src\error.ts:35:14)
    at Object.rpc [as initializeCandyMachine] (C:\Users\dark_\Desktop\Sol\metaplex-master\js\packages\cli\node_modules\@project-serum\anchor\src\program\namespace\rpc.ts:23:42)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 313,
  msg: 'Number of config lines must be at least number of items available'
}

Try deleting the .cache file and then reupload your NFT's, then run this command.

Do share some code also so we can understand your problem in detail!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM