Skip to content

Conversation

@beeman
Copy link
Contributor

@beeman beeman commented Dec 14, 2025

Description

Wallet delete now deletes all the linked accounts.

Closes #746

Checklist

  • Tests have been added for my change

Important

walletDelete now deletes linked accounts before deleting a wallet, with tests added to verify this behavior.

  • Behavior:
    • walletDelete in wallet-delete.ts now deletes all accounts linked to a wallet before deleting the wallet itself.
    • Throws an error if account deletion fails, logging the error.
  • Tests:
    • Added test in wallet-delete.test.ts to verify accounts are deleted when a wallet is deleted.
    • Test checks both wallet and account are null after deletion.
    • Mocked error test to ensure error is thrown if wallet deletion fails.

This description was created by Ellipsis for 071cde4. You can customize this summary. It will automatically update as commits are pushed.

@beeman beeman requested a review from tobeycodes December 14, 2025 13:56
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 14, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
samui-wallet-web 071cde4 Commit Preview URL

Branch Preview URL
Dec 14 2025, 01:57 PM

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to 071cde4 in 41 seconds. Click for details.
  • Reviewed 65 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. packages/db/src/wallet/wallet-delete.ts:10
  • Draft comment:
    Consider using a dedicated error logging method (e.g. console.error or a logging library) instead of console.log for error logging.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
2. packages/db/src/wallet/wallet-delete.ts:18
  • Draft comment:
    The function signature promises to return void but returns 'data' from the deletion. Consider explicitly returning void for consistency.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
3. packages/db/test/wallet-delete.test.ts:33
  • Draft comment:
    A test case for failure in account deletion (bulkDelete) could be added to fully validate error handling when connected accounts fail to delete.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_ixbHo5NtLkq8YrDM

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@bundlemon
Copy link

bundlemon bot commented Dec 14, 2025

BundleMon

Files updated (4)
Status Path Size Limits
apps/web/dist/assets/index-(hash).js
279.54KB (+88B +0.03%) -
apps/extension/.output/chrome-mv3/chunks/clie
nt-(hash).js
254.57KB (+48B +0.02%) -
apps/web/dist/assets/index.browser-(hash).js
986B (-381B -27.87%) -
apps/extension/.output/chrome-mv3/chunks/inde
x.browser-(hash).js
815B (-559B -40.68%) -
Unchanged files (94)
Status Path Size Limits
apps/extension/.output/chrome-mv3/chunks/deri
ve-(hash).js
23.43KB -
apps/web/dist/assets/derive-(hash).js
23.43KB -
apps/desktop/dist/assets/derive-(hash).js
23.42KB -
apps/web/dist/assets/settings-(hash).js
19.78KB -
apps/desktop/dist/assets/settings-(hash).js
19.77KB -
apps/extension/.output/chrome-mv3/chunks/sett
ings-(hash).js
19.77KB -
apps/desktop/dist/assets/form-(hash).js
11.03KB -
apps/extension/.output/chrome-mv3/chunks/form
-(hash).js
11.03KB -
apps/web/dist/assets/form-(hash).js
11.03KB -
apps/extension/.output/chrome-mv3/chunks/sele
ct-(hash).js
8.08KB -
apps/web/dist/assets/select-(hash).js
8.07KB -
apps/desktop/dist/assets/select-(hash).js
8.07KB -
apps/extension/.output/chrome-mv3/chunks/onbo
arding-(hash).js
5.26KB -
apps/desktop/dist/assets/onboarding-(hash).js
5.26KB -
apps/web/dist/assets/onboarding-(hash).js
5.26KB -
apps/desktop/dist/assets/index.browser-(hash)
.js
4.77KB -
apps/desktop/dist/assets/portfolio-(hash).js
4.52KB -
apps/web/dist/assets/portfolio-(hash).js
4.52KB -
apps/extension/.output/chrome-mv3/chunks/port
folio-(hash).js
4.52KB -
apps/extension/.output/chrome-mv3/chunks/crea
te-(hash).js
4.23KB -
apps/desktop/dist/assets/create-(hash).js
4.23KB -
apps/web/dist/assets/create-(hash).js
4.23KB -
apps/web/dist/assets/use-(hash).js
3.21KB -
apps/desktop/dist/assets/use-(hash).js
3.21KB -
apps/extension/.output/chrome-mv3/chunks/use-
(hash).js
3.2KB -
apps/extension/.output/chrome-mv3/chunks/cons
tants-(hash).js
3.16KB -
apps/web/dist/assets/constants-(hash).js
3.15KB -
apps/desktop/dist/assets/constants-(hash).js
3.15KB -
apps/desktop/dist/assets/vanity-(hash).js
2.68KB -
apps/web/dist/assets/vanity-(hash).js
2.68KB -
apps/extension/.output/chrome-mv3/chunks/togg
le-(hash).js
2.46KB -
apps/desktop/dist/assets/toggle-(hash).js
2.45KB -
apps/web/dist/assets/toggle-(hash).js
2.45KB -
apps/desktop/dist/assets/field-(hash).js
1.93KB -
apps/web/dist/assets/field-(hash).js
1.93KB -
apps/extension/.output/chrome-mv3/chunks/fiel
d-(hash).js
1.93KB -
apps/extension/.output/chrome-mv3/chunks/chec
kbox-(hash).js
1.89KB -
apps/web/dist/assets/checkbox-(hash).js
1.89KB -
apps/desktop/dist/assets/checkbox-(hash).js
1.88KB -
apps/desktop/dist/assets/request-(hash).js
1.87KB -
apps/extension/.output/chrome-mv3/chunks/requ
est-(hash).js
1.87KB -
apps/web/dist/assets/request-(hash).js
1.79KB -
apps/desktop/dist/assets/item-(hash).js
1.22KB -
apps/web/dist/assets/item-(hash).js
1.22KB -
apps/extension/.output/chrome-mv3/chunks/item
-(hash).js
1.21KB -
apps/desktop/dist/assets/tools-(hash).js
1.16KB -
apps/extension/.output/chrome-mv3/chunks/tool
s-(hash).js
1.16KB -
apps/web/dist/assets/tools-(hash).js
1.16KB -
apps/desktop/dist/assets/explorer-(hash).js
1.14KB -
apps/web/dist/assets/explorer-(hash).js
1.14KB -
apps/extension/.output/chrome-mv3/chunks/expl
orer-(hash).js
1.14KB -
apps/desktop/dist/assets/zod-(hash).js
769B -
apps/web/dist/assets/zod-(hash).js
766B -
apps/extension/.output/chrome-mv3/chunks/zod-
(hash).js
760B -
apps/desktop/dist/assets/badge-(hash).js
735B -
apps/extension/.output/chrome-mv3/chunks/badg
e-(hash).js
734B -
apps/web/dist/assets/badge-(hash).js
733B -
apps/web/dist/assets/standard-(hash).js
650B -
apps/desktop/dist/assets/standard-(hash).js
649B -
apps/extension/.output/chrome-mv3/chunks/stan
dard-(hash).js
649B -
apps/desktop/dist/assets/button-(hash).js
580B -
apps/web/dist/assets/button-(hash).js
579B -
apps/desktop/dist/assets/input-(hash).js
577B -
apps/extension/.output/chrome-mv3/chunks/butt
on-(hash).js
577B -
apps/extension/.output/chrome-mv3/chunks/inpu
t-(hash).js
577B -
apps/web/dist/assets/input-(hash).js
576B -
apps/desktop/dist/assets/ui-(hash).js
527B -
apps/extension/.output/chrome-mv3/chunks/ui-(
hash).js
526B -
apps/web/dist/assets/ui-(hash).js
524B -
apps/desktop/dist/assets/label-(hash).js
516B -
apps/extension/.output/chrome-mv3/chunks/labe
l-(hash).js
514B -
apps/web/dist/assets/label-(hash).js
514B -
apps/desktop/dist/assets/get-(hash).js
492B -
apps/extension/.output/chrome-mv3/chunks/get-
(hash).js
492B -
apps/web/dist/assets/get-(hash).js
492B -
apps/extension/.output/chrome-mv3/chunks/conv
ert-(hash).js
423B -
apps/web/dist/assets/convert-(hash).js
423B -
apps/desktop/dist/assets/convert-(hash).js
422B -
apps/extension/.output/chrome-mv3/chunks/sol-
(hash).js
417B -
apps/desktop/dist/assets/sol-(hash).js
416B -
apps/web/dist/assets/sol-(hash).js
416B -
apps/desktop/dist/assets/dev-(hash).js
276B -
apps/web/dist/assets/dev-(hash).js
276B -
apps/extension/.output/chrome-mv3/chunks/dev-
(hash).js
275B -
apps/extension/.output/chrome-mv3/chunks/side
panel-(hash).js
202B -
apps/extension/.output/chrome-mv3/chunks/popu
p-(hash).js
200B -
apps/extension/.output/chrome-mv3/chunks/inde
x-(hash).js
174B -
apps/desktop/dist/assets/index-(hash).js
173B -
apps/desktop/dist/assets/ellipsify-(hash).js
145B -
apps/extension/.output/chrome-mv3/chunks/elli
psify-(hash).js
145B -
apps/web/dist/assets/ellipsify-(hash).js
145B -
apps/desktop/dist/assets/network-(hash).js
121B -
apps/extension/.output/chrome-mv3/chunks/netw
ork-(hash).js
121B -
apps/web/dist/assets/network-(hash).js
121B -

Total files change -854B -0.1%

Groups updated (3)
Status Path Size Limits
apps/web/dist/**/*-.js
460.49KB (+176B +0.04%) -
apps/desktop/dist/**/*-.js
434.39KB (+59B +0.01%) -
apps/extension/.output/chrome-mv3/**/*-
.js
432.38KB (-43B -0.01%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

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.

3 participants