test(amm-ui): feed wallet setup password non-interactively

This commit is contained in:
Andrea Franz
2026-08-05 11:50:08 +02:00
committed by r4bbit
parent 41ca0d5852
commit b62372ffb6
+6 -1
View File
@@ -182,7 +182,12 @@ bootstrap_test_wallet() {
if [ -n "$TEST_SEQUENCER_ADDR" ]; then
log "${DIM}\$ wallet config set sequencer_addr $TEST_SEQUENCER_ADDR${RST}"
wallet config set sequencer_addr "$TEST_SEQUENCER_ADDR" \
# On a fresh home this triggers first-time wallet setup, which prompts for a
# password (and generates a throwaway random seed). Feed the password via
# stdin so the bootstrap stays non-interactive; restore-keys below then
# replaces those keys with the deterministic test mnemonic.
printf '%s\n' "$TEST_WALLET_PASSWORD" \
| wallet config set sequencer_addr "$TEST_SEQUENCER_ADDR" \
|| log "${YEL}⚠ 'wallet config set sequencer_addr' failed — configure the wallet manually.${RST}"
fi