2024-03-29 17:49:24 +03:00
|
|
|
# phony targets are targets that don't actually create a file
|
|
|
|
.phony: deploy
|
|
|
|
|
|
|
|
# anvil's third default address
|
2024-06-08 19:56:19 +03:00
|
|
|
sender := ###PRIVATE_KEY###
|
2024-06-09 03:26:26 +03:00
|
|
|
RPC_URL := ###RPC_URL###
|
2024-03-29 17:49:24 +03:00
|
|
|
|
|
|
|
# deploying the contract
|
|
|
|
deploy:
|
|
|
|
@PRIVATE_KEY=$(sender) forge script script/Deploy.s.sol:Deploy --broadcast --rpc-url $(RPC_URL)
|
|
|
|
|
|
|
|
# calling sayGM()
|
|
|
|
call-contract:
|
2024-03-29 17:50:13 +03:00
|
|
|
@PRIVATE_KEY=$(sender) forge script script/CallContract.s.sol:CallContract --broadcast --rpc-url $(RPC_URL)
|