OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-wallet-desktop commits / 6b1c566

Fix: sync transactions uses current account index instead of hardcoded 0
Deployment: testing (hyper-wallet-desktop-test) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
6b1c5661943713f248b18f203cd548c943a960ab
by plankatron <fleeky@gmail.com> · 2026-01-30T03:16:17.000Z

Changed files (2) +15 -5

.claude/deployment-history.json +2 -2
……@@ -4,7 +4,7 @@
44 "branch": "testing",
55 "version": "unknown",
66 "pear_key": "pear://unknown",
7 "deployed_at": "2026-01-29T22:13:28-05:00",
8 "commit_message": "Fix: disable native notifications (libnotify blocks) and store token transactions locally",
7 "deployed_at": "2026-01-29T22:15:10-05:00",
8 "commit_message": "Fix: sync now refreshes balance from blockchain and enable forceSyncNow",
99 "tmux": "pear-seed:5"
1010}
wallet-server.cjs +13 -3
……@@ -826,14 +826,24 @@ const routes = {
826826 return sendError(res, 'Wallet not initialized', 400)
827827 }
828828
829 const { initializeWDK } = require('./lib/wdk-integration.cjs')
829 const { initializeWDK, getBaseChain } = require('./lib/wdk-integration.cjs')
830830 const { wdk } = await initializeWDK(walletMnemonic, { testnet: true })
831831
832 // Sync transactions
832 // Get chain name and current account index
833833 const chainName = chain.replace(/^(testnet|mainnet)-/, '')
834 const baseChain = getBaseChain(chainName) || chainName
835
836 // Get current address index for this chain
837 const currentAddr = await getCurrentAddress(baseChain)
838 const accountIndex = currentAddr ? currentAddr.index : 0
839
840 console.log(`📡 Syncing transactions for ${chainName} account ${accountIndex}`)
841
842 // Sync transactions for the current account
834843 const result = await syncTransactionsFromWDK(wdk, {
835844 chains: [chainName],
836 network: 'testnet'
845 network: 'testnet',
846 accountIndex: accountIndex
837847 })
838848
839849 sendJSON(res, {