metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.31k stars 6.27k forks source link

[Bug]: TypeError: Cannot read properties of undefined (reading 'program') #1833

Closed Squidskerz closed 2 years ago

Squidskerz commented 2 years ago

Which package is this bug report for?

candy machine cli v2

Issue description

After running candy machine upload command I tried deleting and reimporting the original .cache file since the mint resulted in unrecognized tokens and a large loss of SOL... I am trying to verify the upload since everything seems to be working and can be viewed in arweave. Please help! I just want to mint a portion to be freely distributed and have another portion able to be minted by the user.

Command

ts-node js/packages/cli/src/candy-machine-v2-cli.ts verify_upload --keypair ~/.config/solana/mainnet.json

Relevant log output

wallet public key: DHM1mtD6wSMwSwYGMYkZ7uMPa5jBG67HFqkBWNu83nFf
C:\Users\Zgkra\OneDrive\Desktop\PROJECT FILES\metaplex-master\js\packages\cli\src\candy-machine-v2-cli.ts:471
                                 ^
TypeError: Cannot read properties of undefined (reading 'program')
    at Command.<anonymous> (C:\Users\Zgkra\OneDrive\Desktop\PROJECT FILES\metaplex-master\js\packages\cli\src\candy-machine-v2-cli.ts:471:34)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Operating system

windows 10

Priority this issue should have

High (immediate attention needed)

Check the Docs First

Khushhal23 commented 2 years ago

Hello! Please add -e (--env) according to the network and also add -c It's not a bug