codeSTACKr / minter-dapp

MIT License
2.04k stars 3.42k forks source link

[Bug]: getting error 400 while trying to run "npm run deploy_contract" #59

Open ibz667 opened 2 years ago

ibz667 commented 2 years ago

Version

General Question

What happened?

keep getting error 400

What have you tried?

I Googled and asked the community in the discord server but could not find a solution.

Relevant log output

> minter-dapp-backend@0.0.2 deploy_contract
> node utils/nftport/deployContract
Is all REQUIRED contract information correct in config.js? (y/n): y
CATCH ERROR: ERROR STATUS: 400

Protect your information

brada1703 commented 2 years ago

What did you set for the MINT_PRICE? For me, I had it at a very, very small number. Changing it to const MINT_PRICE = 0.1; resolved the issue.

If that doesn't work for you, within backend/utils/nftport/deployContract.js after line 96, enter a new line and console log the contract. Then, post it in here and we can help you debug. Otherwise, yeah, the 400 error doesn't tell you much.