Skip to content

Commit

Permalink
clear_anvil_port
Browse files Browse the repository at this point in the history
  • Loading branch information
snigdha920 committed Mar 21, 2024
1 parent 9a37613 commit 0ec50fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makefile for Foundry Ethereum Development Toolkit

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

build:
@echo "Building with Forge..."
Expand All @@ -20,6 +20,7 @@ snapshot:

anvil:
@echo "Starting Anvil local Ethereum node..."
@make clear_anvil_port
@anvil

deploy-anvil:
Expand Down Expand Up @@ -74,3 +75,6 @@ help:
@anvil --help
@echo "Cast help..."
@cast --help

clear_anvil_port:
-fuser -k -n tcp 8545

0 comments on commit 0ec50fd

Please sign in to comment.