ritual/projects/hello-world/contracts/Makefile
vvzvlad d2ae25aaed
Update Makefile
Signed-off-by: vvzvlad <github@vvzvlad.xyz>
2024-06-08 19:56:19 +03:00

15 lines
456 B
Makefile

# phony targets are targets that don't actually create a file
.phony: deploy
# anvil's third default address
sender := ###PRIVATE_KEY###
RPC_URL := https://base-rpc.publicnode.com
# deploying the contract
deploy:
@PRIVATE_KEY=$(sender) forge script script/Deploy.s.sol:Deploy --broadcast --rpc-url $(RPC_URL)
# calling sayGM()
call-contract:
@PRIVATE_KEY=$(sender) forge script script/CallContract.s.sol:CallContract --broadcast --rpc-url $(RPC_URL)