Skip to content

Commit 416cb56

Browse files
committed
Transparent slow flag
1 parent fb158e8 commit 416cb56

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Makefile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,14 @@ ifneq ($(filter $(VERIFIER), routescan-mainnet routescan-testnet),)
6565
VERIFIER_PARAMS = --verifier $(VERIFIER) --verifier-url '$(VERIFIER_URL)' --etherscan-api-key $(VERIFIER_API_KEY)
6666
endif
6767

68-
# When invoked like `make deploy slow=true`
69-
ifeq ($(slow),true)
70-
SLOW_FLAG := --slow
71-
endif
72-
7368
# Additional chain-dependent params (Foundry)
7469
ifeq ($(CHAIN_ID),88888)
7570
FORGE_SCRIPT_CUSTOM_PARAMS := --priority-gas-price 1000000000 --gas-price 5500000000000
7671
else ifeq ($(CHAIN_ID),300)
72+
FORGE_SCRIPT_CUSTOM_PARAMS := --slow
7773
FORGE_BUILD_CUSTOM_PARAMS := --zksync
7874
else ifeq ($(CHAIN_ID),324)
75+
FORGE_SCRIPT_CUSTOM_PARAMS := --slow
7976
FORGE_BUILD_CUSTOM_PARAMS := --zksync
8077
endif
8178

@@ -110,7 +107,7 @@ clean: ## Clean the build artifacts
110107
forge clean
111108
rm -f $(TEST_TREE_FILES)
112109
rm -f $(TEST_TREE_MARKDOWN)
113-
rm -Rf ./out/* lcov.info* ./report/*
110+
rm -Rf ./out ./zkout lcov.info* ./report
114111

115112
$(MULTISIG_MEMBERS_FILE):
116113
@echo "Creating $(@)"
@@ -203,7 +200,6 @@ deploy: test ## Deploy the protocol, verify the code and write to ./artifacts
203200
--broadcast \
204201
--verify \
205202
$(VERIFIER_PARAMS) \
206-
$(SLOW_FLAG) \
207203
$(FORGE_BUILD_CUSTOM_PARAMS) \
208204
$(FORGE_SCRIPT_CUSTOM_PARAMS) \
209205
$(VERBOSITY) 2>&1 | tee -a $(LOGS_FOLDER)/$(DEPLOYMENT_LOG_FILE)
@@ -220,7 +216,6 @@ resume: test ## Retry the last deployment transactions, verify the code and writ
220216
--verify \
221217
--resume \
222218
$(VERIFIER_PARAMS) \
223-
$(SLOW_FLAG) \
224219
$(FORGE_BUILD_CUSTOM_PARAMS) \
225220
$(FORGE_SCRIPT_CUSTOM_PARAMS) \
226221
$(VERBOSITY) 2>&1 | tee -a $(LOGS_FOLDER)/$(DEPLOYMENT_LOG_FILE)

0 commit comments

Comments
 (0)