1

I'm doing a Solidity tutorial and trying to get a React example up and running. I've got Truffle running and when I run npm start and Chrome connects to localhost, Metamast says "Insufficient Funds". The tutorial says to click "Edit" and set the min gas fee to zero. When I do this, however, it won't let me. Is there some other setting I can use? enter image description here

EDIT I'm using Metamast version 10.8.1.

3

2 Answers 2

1

I got around this another way. When you type "truffle development" into a terminal it will output 10 accounts (along with 10 keys which correspond to those accounts). Take one of those keys and go into MetaMask, select import account, provide the private key. It'll then allow you to connect this new account which begins with 100 ETH. You can then use that account to run this example.

0

Found a hack in the course: set the gas fee to something very, very low like 0.0000000001 and it works.

I still don't understand why I need gas for my local truffle server, and if I do, why the account doesn't offer a way to get some test eth to use. Maybe I'll learn all this later in the tutorial.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.