hodl-wallet 1.7.2 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -414,7 +414,9 @@ class Wallet {
414
414
  // Add transaction to history
415
415
  await this.addToTransactions(address, token, amount, receipt.transactionHash);
416
416
 
417
- if (!contacts[address]) {
417
+ // Check if the address is already in contacts before asking to add it
418
+ const existingContact = await this.db.get('contact', this.network.name, address);
419
+ if (!existingContact) {
418
420
  await this.addToAddressBook(address);
419
421
  }
420
422
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hodl-wallet",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "🧊 HODL Wallet - Fast CLI crypto wallet!",
5
5
  "author": "Martin Clasen",
6
6
  "repository": {