Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Improve Ganache Flexibility #37

Merged
merged 6 commits into from
Jun 22, 2020
Merged

Improve Ganache Flexibility #37

merged 6 commits into from
Jun 22, 2020

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Jun 22, 2020

Motivation

Previously, we'd hardcode mnemonics, privatekeys and urls. This was making our tests less flexible, and also made us run them serially (or we'd also need to hardcode ports!).

Solution

Each time a ganache instance is spawned, it chooses a port dynamically. We also parse the process stdout and extract the private keys from it (up to 10 private keys), and return only after we've seen the Listening on line, (this feature is adapted from Lighthouse)

@gakonst gakonst merged commit bb1ac9c into master Jun 22, 2020
@gakonst gakonst deleted the feature/ganache branch June 22, 2020 13:42
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant