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.
This commit is contained in:
bumi 2018-04-15 21:03:12 +02:00
parent 5235370960
commit 4b1cbbd0f7
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
build
node_modules
node_modules
.ganache-db

View File

@ -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"
},