trufflesuite / ganache-cli-archive

Fast Ethereum RPC client for testing and development. See https://github.com/trufflesuite/ganache for current development.
https://www.trufflesuite.com/ganache
MIT License
3.36k stars 697 forks source link

How to keep accounts #487

Closed DavidKuennen closed 6 years ago

DavidKuennen commented 6 years ago

Unfortunately, unlike the ganache application, ganache-cli creates completely new accounts on each restart. This is very annoying, because I always have to reimport a new account into my metamask to test my application.

Is there a way to keep the accounts in ganache-cli as well?

DavidKuennen commented 6 years ago

Ok, figured it out.

benjamincburns commented 6 years ago

In the future your best bet is to ask questions like these in the Truffle gitter.

chrisciszak commented 6 years ago

@DavidKuennen obviously there is no point of actually answering your own question once you found the answer.

mimoo commented 6 years ago

run ganache-cli --deterministic to your options, this is insecure btw.