From 823658aec93f877d23b5f606760a193db384d444 Mon Sep 17 00:00:00 2001 From: eurobuddha <36900242+eurobuddha@users.noreply.github.com> Date: Wed, 25 Mar 2026 08:51:21 +0000 Subject: [PATCH] fix: declare MINIMERCH_ADDRESS and dbReady in service.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit service.js runs in an isolated ServiceJSRunner thread — it does not share scope with app.js. Both variables were commented out with a note saying they were declared in app.js, causing a ReferenceError every 10 seconds on MDS_TIMER_10SECONDS. Co-Authored-By: Claude Sonnet 4.6 --- template/inbox/service.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/template/inbox/service.js b/template/inbox/service.js index 1a50868..87701cc 100644 --- a/template/inbox/service.js +++ b/template/inbox/service.js @@ -1,11 +1,7 @@ // ChainMail-style protocol: Fixed address for ALL messages, encryption-based privacy -// MINIMERCH_ADDRESS is declared in app.js -// const MINIMERCH_ADDRESS = '0x4D494E494D45524348'; // hex for "MINIMERCH" -// TOKEN_ID_MINIMA is declared in app.js as TOKEN_IDS.MINIMA -// const TOKEN_ID_MINIMA = '0x00'; +const MINIMERCH_ADDRESS = '0x4D494E494D45524348'; // hex for "MINIMERCH" -// dbReady is declared in app.js -// let dbReady = false; +let dbReady = false; function escapeSQL(val) { if (val == null) return 'NULL';