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

[Bug]: app.js:158 Uncaught (in promise) TypeError: window.contract.methods.getInfo is not a function

Open yoyodev577 opened this issue 3 years ago • 7 comments

Version

  • [X] Yes

General Question

  • [X] No

What happened?

A bug happened!

After deployed the build , it keeps loading and has this error.

image

What have you tried?

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

Relevant log output

No response

Protect your information

  • [X] I Agree

yoyodev577 avatar Jul 05 '22 16:07 yoyodev577

I'm having the same issue here too.

mohammed0789 avatar Jul 07 '22 22:07 mohammed0789

same here.

lilgoat347 avatar Jul 08 '22 04:07 lilgoat347

Same issue.

terryworona avatar Jul 08 '22 05:07 terryworona

Hello, same here.

Vemax-L avatar Jul 15 '22 23:07 Vemax-L

YOU CAN GET IT FIXED BY UPDATING THE API FILE, JUST COPY IT FROM THE BACKEND AND THEN PAST IT INTO THE FRONTEND API FILE.

mohammed0789 avatar Jul 16 '22 08:07 mohammed0789

YOU CAN GET IT FIXED BY UPDATING THE API FILE, JUST COPY IT FROM THE BACKEND AND THEN PAST IT INTO THE FRONTEND API FILE.

What 'api' file?

fadairo avatar Jul 18 '22 17:07 fadairo

Follow these instructions for the frontend:

  • Update the frontend/js/abi.js file with the ABI from backend/build/contract/_contract_abi.json.
  • Update your information in the frontend/js/constants.js file.
  • Deploy your dApp to Netlify. (Reference the video for full instructions.)

fadairo avatar Jul 18 '22 18:07 fadairo