Skip to content

Commit dddc5f2

Browse files
mdehoognadir-akhtar-coinbase
authored andcommitted
Avoid echoing private key (#133)
1 parent 04beb53 commit dddc5f2

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

sepolia/2024-02-28-pause-unpause-portal/.env

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ BASE_CONTRACTS_COMMIT=fe492be3478134b2305c207a12b153eca04148c0
33

44
GUARDIAN=0xA9FF930151130fd19DA1F03E5077AFB7C78F8503
55
OPTIMISM_PORTAL_PROXY=0x49f53e41452C74589E85cA1677426Ba426459e85
6-
GUARDIAN_PRIVATE_KEY= # TODO: Fill in when running script

sepolia/2024-02-28-pause-unpause-portal/Makefile

+20-10
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,38 @@ include ../../Makefile
22
include ../.env
33
include .env
44

5-
ifndef LEDGER_ACCOUNT
6-
override LEDGER_ACCOUNT = 0
7-
endif
8-
95
##
106
# Incident response commands
117
# Note that --ledger --hd-paths <PATH> can be replaced with --private-key $(PRIVATE_KEY)
128
# in any command when using a local key.
139
##
1410

11+
ifndef PORTAL_GUARDIAN_PRIVATE_KEY
12+
$(error PORTAL_GUARDIAN_PRIVATE_KEY is undefined)
13+
endif
14+
1515
# Pause OptimismPortal Commands
1616

17+
.PHONY: pause-portal-dryrun
18+
pause-portal-dryrun:
19+
@forge script --rpc-url $(L1_RPC_URL) \
20+
PausePortal --private-key $(PORTAL_GUARDIAN_PRIVATE_KEY)
21+
1722
.PHONY: pause-portal
18-
pause-portal: deps
19-
forge script --rpc-url $(L1_RPC_URL) \
20-
PausePortal --private-key $(GUARDIAN_PRIVATE_KEY) \
23+
pause-portal:
24+
@forge script --rpc-url $(L1_RPC_URL) \
25+
PausePortal --private-key $(PORTAL_GUARDIAN_PRIVATE_KEY) \
2126
--broadcast
2227

2328
# Unpause OptimismPortal Commands
2429

30+
.PHONY: unpause-portal-dryrun
31+
unpause-portal-dryrun:
32+
@forge script --rpc-url $(L1_RPC_URL) \
33+
UnpausePortal --private-key $(PORTAL_GUARDIAN_PRIVATE_KEY)
34+
2535
.PHONY: unpause-portal
26-
unpause-portal: deps
27-
forge script --rpc-url $(L1_RPC_URL) \
28-
UnpausePortal --private-key $(GUARDIAN_PRIVATE_KEY) \
36+
unpause-portal:
37+
@forge script --rpc-url $(L1_RPC_URL) \
38+
UnpausePortal --private-key $(PORTAL_GUARDIAN_PRIVATE_KEY) \
2939
--broadcast

0 commit comments

Comments
 (0)