metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!

Home Page:https://metaplex.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Error]: Cannot read properties of null (reading '_bn')

JRB-y opened this issue · comments

commented

Which package is this bug report for?

candy machine cli

Issue description

I verify_assets with success!
When try to deploy, frommetaplex/js folder i run

ts-node packages/cli/src/candy-machine-v2-cli.ts upload \
    -e devnet \
    -k ~/.config/solana/id.json \
    -cp packages/cli/config.json \
    -c example \
    ./art

I got this error

wallet public key: 8Ge8euDYLK5Puar6LXMmHnPHgPAQWHSzj7563dshQScN
Using cluster devnet
/Users/jrb/web3/metaplex/js/node_modules/@solana/web3.js/src/publickey.ts:35
  return (value as PublicKeyData)._bn !== undefined;
                                  ^
TypeError: Cannot read properties of null (reading '_bn')
    at isPublicKeyData (/Users/jrb/web3/metaplex/js/node_modules/@solana/web3.js/src/publickey.ts:35:35)
    at new PublicKey (/Users/jrb/web3/metaplex/js/node_modules/@solana/web3.js/src/publickey.ts:51:9)
    at getCandyMachineV2Config (/Users/jrb/web3/metaplex/js/packages/cli/src/helpers/various.ts:198:36)
    at Command.<anonymous> (/Users/jrb/web3/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:166:38)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Command

No response

Relevant log output

No response

Operating system

macos

Priority this issue should have

High (immediate attention needed)

Check the Docs First

  • I have checked the docs and it didn't solve my issue
commented

I think we can close this issue:
It was the -cp packages/cli/config.json \ it needs to be -cp ./packages/cli/config.json \