FTM-Labs / Aptos-NFT-Mint

ftmtest.vercel.app
MIT License
164 stars 95 forks source link

Candy machine not initialized #31

Open 0xsergen opened 1 year ago

0xsergen commented 1 year ago

All process is successfully completed until the front end. There is an initialization issue, thus there are some bugs on frontend. image

It gives that error on console. I think there is an issue about Candy machine not initialized on given address for chain dev

Edit: It seems the issue about contract address.

What should I type for CONTRACT_ADDRESS in candyMachineInfo.js and constants.py files?

bilaljawed commented 1 year ago

All process is successfully completed until the front end. There is an initialization issue, thus there are some bugs on frontend. image

It gives that error on console. I think there is an issue about Candy machine not initialized on given address for chain dev

Edit: It seems the issue about contract address.

What should I type for CONTRACT_ADDRESS in candyMachineInfo.js and constants.py files?

when you run cli command, it gives output like:

=== Preparing Candy Machine account ===
Public key: xxx

The public key is your candy machine address

0xsergen commented 1 year ago

when you run cli command, it gives output like:

=== Preparing Candy Machine account ===
Public key: xxx

The public key is your candy machine address

If I put public key into contract address as well, it gives the error that I mentioned. Which parameter should I use for CONTRACT_ADDRESS?

emmanuelnwogbo commented 1 year ago

All process is successfully completed until the front end. There is an initialization issue, thus there are some bugs on frontend. image

It gives that error on console. I think there is an issue about Candy machine not initialized on given address for chain dev

Edit: It seems the issue about contract address.

What should I type for CONTRACT_ADDRESS in candyMachineInfo.js and constants.py files?

Currently facing this issue too. Have you been able to figure it out?

0xsergen commented 1 year ago

Currently facing this issue too. Have you been able to figure it out?

Not yet.

bilaljawed commented 1 year ago

when you run cli command, it gives output like:

=== Preparing Candy Machine account ===
Public key: xxx

The public key is your candy machine address

If I put public key into contract address as well, it gives the error that I mentioned. Which parameter should I use for CONTRACT_ADDRESS?

The public key is contract address, it works fine, just make sure your wallet is on the same network, I have double checked and frontend is also on the same network (RPC URL)

0xsergen commented 1 year ago

My contract and frontend are both on devnet and use same RPC URL.

emmanuelnwogbo commented 1 year ago

when you run cli command, it gives output like:

=== Preparing Candy Machine account ===
Public key: xxx

The public key is your candy machine address

If I put public key into contract address as well, it gives the error that I mentioned. Which parameter should I use for CONTRACT_ADDRESS?

The public key is contract address, it works fine, just make sure your wallet is on the same network, I have double checked and frontend is also on the same network (RPC URL)

Please may I ask how you get the contract address that you added to the constants.py file