From 4b1cbbd0f7540b11ef638c53c86a27905ff47d05 Mon Sep 17 00:00:00 2001 From: bumi Date: Sun, 15 Apr 2018 21:03:12 +0200 Subject: [PATCH] Persist ganache DB and use fixed Mnemonic This persists the state of the ganache db and uses a fixed mnemonic code to create accounts. It now acts more like a local presistent database and no need to send funds to the accounts after restart. --- .gitignore | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 48912d2..697f31a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ build -node_modules \ No newline at end of file +node_modules +.ganache-db \ No newline at end of file diff --git a/package.json b/package.json index b97dd9c..f5c22e7 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "build-json": "truffle compile && node ./scripts/build-json.js", "bootstrap": "truffle migrate --reset && truffle exec scripts/seeds.js && npm run build-json", - "ganache": "ganache-cli -p 7545 -i 100", + "ganache": "ganache-cli -p 7545 -i 100 --db=./.ganache-db -m kredits", "dev": "truffle migrate && npm run build-json", "test": "echo \"Error: no test specified\" && exit 1" },