Commit c50f93a
refactor: Use generateWalletId() for single source of truth
Replaces inline randomBytes(16).toString('hex') calls in wallet-store.ts
with the centralized generateWalletId() utility function to eliminate
code duplication and maintain consistency.
Changes:
- Import generateWalletId from key-generation.ts
- Replace wallet ID generation in importWallet() (line 122)
- Replace wallet ID generation in importLedgerWallet() (line 165)
This ensures all wallet IDs are generated using the same method
across the codebase.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a5cf17d commit c50f93a
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | | - | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
0 commit comments