From 0576b10dcba039c39590ebb61820c4e882a555a2 Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Thu, 30 Jul 2026 14:39:12 +0000 Subject: [PATCH] test(amm-ui): feed wallet setup password non-interactively --- apps/amm/tests/testnet/setup-amm-testnet.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/amm/tests/testnet/setup-amm-testnet.sh b/apps/amm/tests/testnet/setup-amm-testnet.sh index 2ec7be6..a361973 100755 --- a/apps/amm/tests/testnet/setup-amm-testnet.sh +++ b/apps/amm/tests/testnet/setup-amm-testnet.sh @@ -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