diff --git a/spartan/scripts/consolidate-sepolia-balances.sh b/spartan/scripts/consolidate-sepolia-balances.sh index a1d85f39b971..04771ac01e7e 100755 --- a/spartan/scripts/consolidate-sepolia-balances.sh +++ b/spartan/scripts/consolidate-sepolia-balances.sh @@ -13,7 +13,7 @@ set -exu mnemonic=$1 funding_address=${2:-"0x33D525f5ac95c2BCf98b644738C7d5673480493A"} -values_file=${3:-"ignition-testnet"} +values_file=${3:-"ignition-testnet.yaml"} XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-"$HOME/.config"} diff --git a/spartan/scripts/prepare_sepolia_accounts.sh b/spartan/scripts/prepare_sepolia_accounts.sh index 8bcf5a905c7a..b787bd18fc68 100755 --- a/spartan/scripts/prepare_sepolia_accounts.sh +++ b/spartan/scripts/prepare_sepolia_accounts.sh @@ -4,6 +4,14 @@ set -euo pipefail source $(git rev-parse --show-toplevel)/ci3/source +reset_x=false + +# Set +x if it's currently enabled +if [ -o xtrace ]; then + set +x + reset_x=true +fi + tmp_filename=$(mktemp) addresses_file=$(mktemp) @@ -15,6 +23,9 @@ cleanup() { if [ -f "$addresses_file" ]; then rm -f "$addresses_file" fi + if [ $reset_x = true ]; then + set -x + fi } # Set up trap to call cleanup on script exit @@ -79,14 +90,13 @@ max_index=$((max_index > bot_max_index ? max_index : bot_max_index)) # Total number of accounts needed total_accounts=$((num_validators + num_provers + num_bots)) - - # Create a new mnemonic echo "Creating mnemonic..." cast wallet new-mnemonic --json >"$tmp_filename" MNEMONIC=$(jq -r '.mnemonic' "$tmp_filename") -echo "MNEMONIC: $MNEMONIC" +echo "MNEMONIC:" +echo "::add-mask::$MNEMONIC" # Cast has a limit of 255 accounts per mnemonic command # We'll need to derive accounts in batches