metaplex-foundation / metaplex

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

[Bug]: Can't mint because of the "0x7dc" error #1915

Closed merlox closed 2 years ago

merlox commented 2 years ago

Which package is this bug report for?

candy machine ui

Issue description

  1. Deploy the cli candy machine to the testnet with this config:
    {
    "price": 0.01,
    "number": 7,
    "gatekeeper": {
        "gatekeeperNetwork" : "ignREusXmGrscGNUesoU9mxfds9AiYTezUKex2PsZV6",
        "expireOnUse" : true
    },
    "solTreasuryAccount": "6z9nhc3VzRJ2UwFZqbgu6ZxRtmnBc32JvSFtizvcFZrU",
    "splTokenAccount": null,
    "splToken": null,
    "goLiveDate": 1646583165849,
    "endSettings": {
        "endSettingType": { "amount":true },
        "value": 7
    },
    "whitelistMintSettings": null,
    "hiddenSettings": null,
    "storage": "nft-storage",
    "ipfsInfuraProjectId": null,
    "ipfsInfuraSecret": null,
    "nftStorageKey": "(I'm using a real API key here)",
    "arweaveJwk": null,
    "awsS3Bucket": null,
    "noRetainAuthority": false,
    "noMutable": false 
    }
  2. After a successful upload to testnet I start the candy machine UI by updating the .env file with the right candy machine deployed program ID.
  3. I tried to mint and everytime I get this error:
    Signed txns length 1 vs handed in length 2
    connection.tsx:366 Started awaiting confirmation for 3RzvVoWm4c4KGq9W3uq47QJd5ESy4t8VFfoprLHNRcsmic5z6E3Y4ZoFDcGmEDi5Cat8UoWf5wDnpyacGuqJH47m
    connection.tsx:511 REST null result for 3RzvVoWm4c4KGq9W3uq47QJd5ESy4t8VFfoprLHNRcsmic5z6E3Y4ZoFDcGmEDi5Cat8UoWf5wDnpyacGuqJH47m null
    candy-machine.ts:535 Error: Transaction failed: Custom program error: 0x7dc
    at sendSignedTransaction (connection.tsx:411:1)

Command

ts-node js/packages/cli/src/candy-machine-v2-cli.ts upload -e testnet -k /Users/merunas/.config/solana/devnet.json -cp ./upload.json -c solarbears ./upload-files

Then inside candy-machine-ui I do:

yarn start

Relevant log output

Signed txns length 1 vs handed in length 2
connection.tsx:366 Started awaiting confirmation for 3RzvVoWm4c4KGq9W3uq47QJd5ESy4t8VFfoprLHNRcsmic5z6E3Y4ZoFDcGmEDi5Cat8UoWf5wDnpyacGuqJH47m
connection.tsx:511 REST null result for 3RzvVoWm4c4KGq9W3uq47QJd5ESy4t8VFfoprLHNRcsmic5z6E3Y4ZoFDcGmEDi5Cat8UoWf5wDnpyacGuqJH47m null
candy-machine.ts:535 Error: Transaction failed: Custom program error: 0x7dc
    at sendSignedTransaction (connection.tsx:411:1)

Operating system

Mac OS big sur 11.0.1

Priority this issue should have

Medium (should be fixed soon)

Check the Docs First

merlox commented 2 years ago

I execute the mint but the transaction in phantom always fails. Not sure why, have you guys tried to run it in testnet?

merlox commented 2 years ago

It looks like a CLI error. Can someone explain what that 0x7dc means?

stegaBOB commented 2 years ago

Our programs aren't deployed on testnet. Try using mainnet-beta or devnet, although the latest solana devnet release is like basically broken and nothing is working for our programs :/

merlox commented 2 years ago

can you deploy them to testnet or tell me which ones are so I can deploy them there? testnet works so good right now compared to dev net

merlox commented 2 years ago

sounds like a pretty big deal that you can't run the app without deploying to mainnet. We should be able to run in all test networks AND localhost.