EatTheBlocks Forum

Problem at the frontend part of the part 4 of DAPP30

Hello everyone,

I am stuck at the frontend part of the day4 of DAPP30. When I want to make a transaction by entering a number and by clicking on submit, nothing happens (Metamask does not ask for the confirmation of the transaction). I think it’s because Metamask indicates “not connected”(see picture below).

Here is my environment:
Ganache 2.1.1
Truffle v5.0.42 (core: 5.0.42)
Solidity v0.5.8 (solc-js)
Node v14.4.0
Web3.js v1.2.1
Last version of Google Chrome

Do you know how to make Metamask connecting please?

Thank you in advance

Take care
Pierre

Hi Pierre,

What do you see in the Javascript console when you click on submit?

For Metamask not connected, it means you are not running Ganache or have entered incorrect URL/PORT. You need to be running Ganache while you are doing the test.

Do you use the exact code from Github, and not the one you coded yourself?
You might have made a typo in your code

Hi Julian,

Thanks for you answer.
I see this in the javascript console when I click on submit:
image

I notice that I used the code in the end folder and there was no bundle.js so I created one and I put in it the code of the index.js file. If I don’t create a bundle.js file the javascript console complains that there is no bundle.js file.

Ganache is running correctly.

Thank you for your help.

Pierre