Skip to content

Commit

Permalink
fix: run hardhat on 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Nov 7, 2024
1 parent ed7b628 commit 66a62e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/helpers/hardhat-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ export class HardhatServer {
// Method to start Hardhat and wait until it's ready
public async start() {
return new Promise<void>((resolve, reject) => {
this.hardhatProcess = spawn('npx', ['hardhat', 'node']);
this.hardhatProcess = spawn('npx', [
'hardhat',
'node',
'--hostname',
'0.0.0.0',
]);

if (!this.hardhatProcess) {
return reject(new Error('Failed to start Hardhat process'));
Expand Down

0 comments on commit 66a62e9

Please sign in to comment.