Skip to content

Commit a073687

Browse files
committed
fix: add authz grants in uv script
1 parent be0c696 commit a073687

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

scripts/test_universal.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,47 @@ else
6767
echo "WARN: $PCHAIN_BIN not found; skipping authz grant."
6868
fi
6969

70+
sleep 1
71+
72+
if command -v "$PCHAIN_BIN" >/dev/null 2>&1; then
73+
echo "==> Granting authz (generic: /uexecutor.v1.MsgVoteGasPrice) to $UV_HOTKEY_ADDR via $PCHAIN_BIN"
74+
"$PCHAIN_BIN" tx authz grant "$UV_HOTKEY_ADDR" generic \
75+
--msg-type=/uexecutor.v1.MsgVoteGasPrice \
76+
--from acc1 \
77+
--fees "$FEES" \
78+
-y
79+
else
80+
echo "WARN: $PCHAIN_BIN not found; skipping authz grant."
81+
fi
82+
83+
sleep 1
84+
85+
if command -v "$PCHAIN_BIN" >/dev/null 2>&1; then
86+
echo "==> Granting authz (generic: /uexecutor.v1.MsgVoteOutbound) to $UV_HOTKEY_ADDR via $PCHAIN_BIN"
87+
"$PCHAIN_BIN" tx authz grant "$UV_HOTKEY_ADDR" generic \
88+
--msg-type=/uexecutor.v1.MsgVoteOutbound \
89+
--from acc1 \
90+
--fees "$FEES" \
91+
-y
92+
else
93+
echo "WARN: $PCHAIN_BIN not found; skipping authz grant."
94+
fi
95+
96+
sleep 1
97+
98+
if command -v "$PCHAIN_BIN" >/dev/null 2>&1; then
99+
echo "==> Granting authz (generic: /utss.v1.MsgVoteTssKeyProcess) to $UV_HOTKEY_ADDR via $PCHAIN_BIN"
100+
"$PCHAIN_BIN" tx authz grant "$UV_HOTKEY_ADDR" generic \
101+
--msg-type=/utss.v1.MsgVoteTssKeyProcess \
102+
--from acc1 \
103+
--fees "$FEES" \
104+
-y
105+
else
106+
echo "WARN: $PCHAIN_BIN not found; skipping authz grant."
107+
fi
108+
109+
sleep 1
110+
70111
# ---------- Initialize and start ----------
71112
echo "==> Initializing $BINARY..."
72113
"$BINARY" init

0 commit comments

Comments
 (0)