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

Feat unlock #633

Merged
merged 7 commits into from
Jun 19, 2020
Merged

Feat unlock #633

merged 7 commits into from
Jun 19, 2020

Conversation

matnad
Copy link
Collaborator

@matnad matnad commented Jun 17, 2020

What I did

Added the unlock setting to the network config in development networks.
This will pass the unlocked accounts to ganache-cli and add them to the accounts object.

Closes #618

How I did it

Added unlock field to the config file, accepts a single address or multiple addresses
When Accounts._reset() is called, add the unlocked accounts to the end of the list.

How to verify it

I adjusted the tests

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation
  • I have added an entry to the changelog

brownie/network/account.py Outdated Show resolved Hide resolved
brownie/network/rpc.py Outdated Show resolved Hide resolved
brownie/network/rpc.py Outdated Show resolved Hide resolved
Copy link
Member

@iamdefinitelyahuman iamdefinitelyahuman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@iamdefinitelyahuman
Copy link
Member

Tests are failing here because of #494

@iamdefinitelyahuman iamdefinitelyahuman merged commit fb63b87 into eth-brownie:master Jun 19, 2020
@matnad matnad deleted the feat-unlock branch December 28, 2020 12:16
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

Successfully merging this pull request may close these issues.

Add support for ganache --unlock flag
2 participants