ritual/projects/hello-world/contracts/Makefile

15 lines
456 B
Makefile
Raw Normal View History

# 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)