Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 5: brownie simple storage account address error #1892

Open
its-all-relative opened this issue Dec 12, 2023 · 0 comments
Open

Lesson 5: brownie simple storage account address error #1892

its-all-relative opened this issue Dec 12, 2023 · 0 comments

Comments

@its-all-relative
Copy link

its-all-relative commented Dec 12, 2023

In Lesson 5 of Youtube video, 3 ways to add account and pvt key to brownie accounts are demonstrated.

In the 2nd way of adding an account from Metamask using pvt key, running the script gives the account address which is same as my Metamask account as expected.

When 3rd way of adding via environment variables is used, using the same pvt key from the metamask account, a different account address is generated on running the script.

Q1 It seems that the private key in .env is not getting pulled into the script when running it.
Can you share why this could be happening? I have tried without quotes too. The error I get is it is an invalid hexadecimal digit when it is right. Can the private key be used either from Metamask's or Ganache? Is there a change in using pvt keys from the 2 sources?

Screenshot 2023-12-12 at 12 18 16 PM

image

image

@its-all-relative its-all-relative changed the title Lesson 5: brownie simple storage Lesson 5: brownie simple storage account address error Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant