Skip to content

Lesson 5: brownie simple storage account address error #1892

Open
@its-all-relative

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions