From 932627d636ca7e7842dbb6be22473ece3f35cff8 Mon Sep 17 00:00:00 2001 From: Arseniy Klempner Date: Tue, 12 May 2026 13:24:46 -0600 Subject: [PATCH] fix: update sim for SPEL 32-byte tree_id and submodule restore TREE_ID_HEX updated from 24 to 32 bytes to match SPEL's tree_id format, fixing stale payment account lookup that caused silent registration failures (KeyNotFound error 8). setup_and_run.sh now restores working tree files in all nested submodules after git submodule update --init, which resets them. --- simulations/mix_lez_chat/run_simulation.sh | 2 +- simulations/mix_lez_chat/setup_and_run.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/simulations/mix_lez_chat/run_simulation.sh b/simulations/mix_lez_chat/run_simulation.sh index 41ac988..5be60b7 100755 --- a/simulations/mix_lez_chat/run_simulation.sh +++ b/simulations/mix_lez_chat/run_simulation.sh @@ -163,7 +163,7 @@ echo "[2/6] Deploying programs..." export NSSA_WALLET_HOME_DIR="$LEZ_RLN_DIR/dev" export WALLET_CONFIG="$NSSA_WALLET_HOME_DIR/wallet_config.json" export WALLET_STORAGE="$NSSA_WALLET_HOME_DIR/storage.json" -TREE_ID_HEX="000102030405060708090a0b0c0d0e0f1011121314151617" +TREE_ID_HEX="000102030405060708090a0b0c0d0e0f10111213141516170000000000000000" GIFTER_ACCOUNT_FILE="$HOME/.logos-lez-rln/payment_account_${TREE_ID_HEX}.txt" rm -f "$WALLET_CONFIG" "$WALLET_STORAGE" diff --git a/simulations/mix_lez_chat/setup_and_run.sh b/simulations/mix_lez_chat/setup_and_run.sh index d93550e..15b61fc 100755 --- a/simulations/mix_lez_chat/setup_and_run.sh +++ b/simulations/mix_lez_chat/setup_and_run.sh @@ -65,6 +65,10 @@ fi log "Initializing nested submodules in vendor/logos-lez-rln..." (cd vendor/logos-lez-rln && \ git submodule update --init lssa logos-delivery logos-delivery-module logos-execution-zone-module && \ + git checkout -- . && \ + for d in lssa logos-delivery logos-delivery-module logos-execution-zone-module; do \ + (cd "$d" && git checkout -- .); \ + done && \ cd logos-delivery-module && git submodule update --init vendor/logos-delivery) if [ -d "${GUEST_TMP:-}" ]; then mkdir -p "$GUEST_DIR"