Git Product home page Git Product logo

Comments (4)

tadeoaguilar avatar tadeoaguilar commented on June 16, 2024 1

I tried changing the anchor version to other stable releases but no luck at all. I found that Metaplex has recently updated the documentation. There are new ways to connect with the Cany Machine, I will try and update here.
https://docs.metaplex.com/programs/candy-machine/how-to-guides/my-first-candy-machine-part2

from metaplex.

JeffKGabriel avatar JeffKGabriel commented on June 16, 2024

Yes for me as well- Error: Invalid option tokenMint

i am using candy-machine-ui , npm i, create .env, and insert my REACT_APP_CANDY_MACHINE_ID=***

I wonder if it has todo with candy-machine-ui using "@project-serum/anchor": "^0.17.0", dependency - im not sure

in candy-machine-ui it looks like it is happening at getCandyMachineState , Home.tsx line: 99 ->
which calls candy-machine.ts and im seeing issues resolving
const state: any = await program.account.candyMachine.fetch(candyMachineId);

program.account.candyMachine looks like it has the following attributes from logs

_coder:
_idlAccount:
_programId:
_provider:
_size:
coder: (...)
programId:(...)
provider:(...)
size:(...)

but getProgramState() doesnt seem to get past this line await program.account.candyMachine.fetch(

from metaplex.

tadeoaguilar avatar tadeoaguilar commented on June 16, 2024

Haha, some progress with the new Metaplex guide. I have a different error now.

:82 Uncaught (in promise) TypeError: (0 , types_BigNumber_mjs__WEBPACK_IMPORTED_MODULE_3_.toBigNumber)(...).toBuffer is not a function
at toCandyMachine (CandyMachine.mjs:82:54)
at Object.handle (findCandyMachineByAddress.mjs:59:40)
at async Disposable.run (Disposable.mjs:22:1)
toCandyMachine @ CandyMachine.m

image

from metaplex.

tanlethanh avatar tanlethanh commented on June 16, 2024

For those who still find the answer, the problem is using the incorrect program id (candy machine v1, v2, or v3) for the account. You can search at https://explorer.solana.com/ by your CANDY_MACHINE_ID and find assigned program id, the actual program id that suits your candy machine version. Then set the id to candyMachineProgram in above snippet

from metaplex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.