From 9f177147df311b3665d058b7a998d0327946aae6 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 11 Mar 2026 21:58:13 -0700 Subject: [PATCH] feat(rwallet): auto-load EncryptID wallet or demo EOA on page load Instead of showing an empty form, rWallet now automatically detects and loads the user's EncryptID wallet address, or Vitalik.eth as a demo if not logged in. URL ?address= param still takes priority. Co-Authored-By: Claude Opus 4.6 --- modules/rwallet/components/folk-wallet-viewer.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/rwallet/components/folk-wallet-viewer.ts b/modules/rwallet/components/folk-wallet-viewer.ts index acbea4f..209a854 100644 --- a/modules/rwallet/components/folk-wallet-viewer.ts +++ b/modules/rwallet/components/folk-wallet-viewer.ts @@ -141,6 +141,17 @@ class FolkWalletViewer extends HTMLElement { const params = new URLSearchParams(window.location.search); this.address = params.get("address") || ""; this.checkAuthState(); + + // Auto-load: use session wallet, or fall back to demo EOA + if (!this.address) { + if (this.passKeyEOA) { + this.address = this.passKeyEOA; + } else { + // Demo EOA — Vitalik.eth + this.address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"; + } + } + this.render(); if (this.address) this.detectChains(); }