Skip to content

Issue 236#355

Open
sochima2 wants to merge 2 commits into
Emmy123222:mainfrom
sochima2:issue-236
Open

Issue 236#355
sochima2 wants to merge 2 commits into
Emmy123222:mainfrom
sochima2:issue-236

Conversation

@sochima2
Copy link
Copy Markdown

@sochima2 sochima2 commented Jun 1, 2026

Summary

Description
Persist last-known public key to localStorage and hydrate it in WalletProvider (frontend/lib/useWallet.tsx) and keep storage synchronized on connect/disconnect.
Add a reusable address book module (frontend/lib/addressBook.ts) that reads legacy keys, normalizes contacts, supports upsert/delete, emits update events, and handles storage failures gracefully.
Integrate the address book into the send form (frontend/components/SendPaymentForm.tsx) to show a contacts dropdown, provide autocomplete/filtering, and add save/remove contact actions from the destination input.
Add a “Save contact” action to transaction rows (frontend/components/TransactionList.tsx) and migrate the contacts page (frontend/pages/contacts.tsx) to use the shared address book API and nicknames.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / chore
  • Smart contract change

Related issue

Closes #236

Changes

Testing

  • Tested locally on Testnet
  • Added/updated unit tests
  • Manually tested UI flow

Screenshots (if UI change)

Checklist

  • My code follows the project style
  • I've updated docs if needed
  • No console errors or warnings
  • I've rebased on latest main

sochima2 added 2 commits June 1, 2026 20:31
…o-localstorage

Persist wallet public key and add local address book with autocomplete
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@sochima2 is attempting to deploy a commit to the Emmanuel's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@sochima2 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[improvement] Persist wallet public key to localStorage to survive page refresh

1 participant