Skip to content

Commit 0608007

Browse files
committed
fix: make get_paused_state_batcher_payments_service
1 parent ec2f42c commit 0608007

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ unpause_batcher_payment_service:
117117
get_paused_state_batcher_payments_service:
118118
@echo "Getting paused state of Batcher Payments Service contract..."
119119
. contracts/scripts/get_paused_state_batcher_payments_service.sh
120+
120121
anvil_upgrade_initialize_disable_verifiers:
121122
@echo "Initializing disabled verifiers..."
122123
. contracts/scripts/anvil/upgrade_disabled_verifiers_in_service_manager.sh
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
if [ -z "$BATCHER_PAYMENT_SERVICE" ]; then
4+
echo "BATCHER_PAYMENT_SERVICE env var is not set"
5+
exit 1
6+
fi
7+
8+
if [ -z "$RPC_URL" ]; then
9+
echo "RPC_URL env var is not set"
10+
exit 1
11+
fi
12+
13+
is_paused=$(cast call $BATCHER_PAYMENT_SERVICE "paused()(bool)" --rpc-url $RPC_URL)
14+
echo Batcher Payments Paused state: $is_paused

0 commit comments

Comments
 (0)