Not enought ether to pay gas fees (course 201)

When I trigger the add data function Metamask says that I don’t have enough ether to pay the gas, even though my account has 99 Eth. Can anybody help me with this?

1 Like

please share your code, either in preformatted text or as a github repo and add some screenshots as well as a description of how to replicate your issue.
I also encounter this issue when developing, but your description of the problem does not help me to understand where it comes from. This can have multiple reasons, probably it has something to do with your config. More info please :slight_smile:

Hi Bhujanga,

Thanks a lot for your help! I uploaded the code to github (I am new to github, so I hope the way I uploaded it is okay).

https://github.com/darntz/dapps/commit/2370469cf657ac53b8e92832f4a3aa1d76fd4fd1

I also attached a picture of the dapp + metamask. The red error message in metamask means “Insufficient balance”.

metamask

ganache

Will look into tonight :+1:

I went to the setup process again and restarted python, remigrated, restarted ganache and added a new account to metamask. I am not sure why, but not it works :slight_smile:
Thanks again for your kind help!