Skip to content

Commit

Permalink
Create a new ganache db for each version (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwhisperer authored and 0xGabi committed Feb 25, 2019
1 parent 1cdcd65 commit 2dc991e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/aragon-cli/src/commands/devchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const mkdirp = require('mkdirp')
const chalk = require('chalk')
const fs = require('fs')
const listrOpts = require('../helpers/listr-options')
const pjson = require('../../package.json')

const { BLOCK_GAS_LIMIT, MNEMONIC } = require('../helpers/ganache-vars')

Expand Down Expand Up @@ -43,7 +44,10 @@ exports.task = async function({
const mkDir = promisify(mkdirp)
const recursiveCopy = promisify(ncp)

const snapshotPath = path.join(os.homedir(), `.aragon/ganache-db-${port}`)
const snapshotPath = path.join(
os.homedir(),
`.aragon/ganache-db-${pjson.version}`
)

const tasks = new TaskList(
[
Expand Down

0 comments on commit 2dc991e

Please sign in to comment.