minter-dapp icon indicating copy to clipboard operation
minter-dapp copied to clipboard

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

Open ibz667 opened this issue 3 years ago • 1 comments

Version

  • [X] Yes

General Question

  • [X] No

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

> [email protected] 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

  • [X] I Agree

ibz667 avatar May 03 '22 11:05 ibz667

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.

brada1703 avatar May 05 '22 14:05 brada1703