Skip to content

Commit 42e9a08

Browse files
authored
fix: clear_anvil_port (#7)
1 parent eca2373 commit 42e9a08

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Makefile for Foundry Ethereum Development Toolkit
22

3-
.PHONY: build test format snapshot anvil deploy deploy-anvil cast help subgraph
3+
.PHONY: build test format snapshot anvil deploy deploy-anvil cast help subgraph clear_anvil_port
44

55
build:
66
@echo "Building with Forge..."
@@ -20,6 +20,7 @@ snapshot:
2020

2121
anvil:
2222
@echo "Starting Anvil local Ethereum node..."
23+
@make clear_anvil_port
2324
@anvil
2425

2526
deploy-anvil:
@@ -76,3 +77,6 @@ help:
7677
@anvil --help
7778
@echo "Cast help..."
7879
@cast --help
80+
81+
clear_anvil_port:
82+
-fuser -k -n tcp 8545

0 commit comments

Comments
 (0)