Closed aliweb3 closed 12 months ago
Did You make sure that your Local blockchain was running parallely on another terminal?
Yes, in anvil is working , but in ganache have problem
Looks like there's a problem with your private key.
Are you sure you've pasted it correctly? You should click on the key button here -
And copy the private key (the second option) - that's the key you paste into the terminal.
If that doesn't work, you can try pasting the private key into an .env
file like so:
DUMMY_PRIVATE_KEY=0x97d40ee0e......
In your terminal source the .env
so you can use it
source .env
And then run the command with the variable
forge create SimpleStorage --rpc-url http://127.0.0.1:7545
--private-key $DUMMY_PRIVATE_KEY
(Note - these private keys are dummies and are "okay" to post online, and this method with .env should be only used in testing, not real production.)
Also, in the future - please keep this issues section in the repo for issues in the course, such as a broken link, file missing, etc.. For problems you're having, you should open a discussion, where people look more often to help other people. It's also better to give an informative title, instead of "hi", to give better context for your problem. A good title would be - "Problem with Ganache accessing local wallet".
Hi Guys! New here and excited to become a great contributor to this new cryptographic world :D
Closing this as it's a stale isssue. For questions, please use the discussions!
hi i have issu whith this command in my terminal
when i want to run this command i got this error:
how can i fix this? please help