trufflesuite / truffle-teams

Continuous Integration for your Truffle Project
https://truffleframework.com/teams
13 stars 5 forks source link

Allow unlocking of arbitrary accounts in forked networks #16

Open OnlyOneJMJQ opened 4 years ago

OnlyOneJMJQ commented 4 years ago

When using forking in ganache-cli, you can unlock any account by passing it in with the -u flag. Since we initialize the sandbox in Teams, there's no way to do this.

Looks like we can:

  1. Offer an option for users to pass in account addresses when forking is checked.
  2. Allow for programmatic unlocking via the CLI, so users logged in with truffle console can add addition unlocked accounts. See this convo on Spectrum for an example.

Probably worth doing both, but 1. is all that applies to Teams directly.

Ulysseus commented 4 years ago

This is a very useful feature because you can find an existing account on mainnet that has balances of certain tokens. Which makes working with existing tokens and contracts easier! Addition of 2 would also be good, then the Ganache UI could also access the unlocked account. Presently the UI only lets you fork the chain but not unlock an account.