Skip to content

Commit

Permalink
which anvil
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Sep 11, 2023
1 parent d316977 commit fc6a18c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
8 changes: 7 additions & 1 deletion commands/foundry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { findNetwork } = require('../helpers');
const which = require('which')

const log = require('debug')('synpress:foundry');

Expand All @@ -13,7 +14,12 @@ module.exports = {
return activeChains;
},
async forkChains(options) {
log('starting to fork chains');
try {
await which('anvil');
} catch (e) {
throw new Error('No anvil :) Reason:', e);
}

try {
// await module.exports.installFoundry(options.foundryCommit);

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
"node-fetch": "^2.6.1",
"underscore": "^1.13.6",
"viem": "^1.6.0",
"wait-on": "^7.0.1"
"wait-on": "^7.0.1",
"which": "^4.0.0"
},
"devDependencies": {
"@metamask/test-dapp": "^7.0.1",
Expand Down
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc6a18c

Please sign in to comment.