hodl-wallet 1.5.4 → 1.5.6
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.
- package/index.mjs +2 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -319,7 +319,7 @@ class Wallet {
|
|
|
319
319
|
return addressBook
|
|
320
320
|
.filter(entry => entry.name.toLowerCase().includes(input.toLowerCase()) || entry.address.toLowerCase().includes(input.toLowerCase()))
|
|
321
321
|
.map(entry => ({
|
|
322
|
-
name: entry.address ? `${entry.
|
|
322
|
+
name: entry.address ? `${entry.address} (${entry.name})` : entry.name,
|
|
323
323
|
value: entry.address
|
|
324
324
|
}))
|
|
325
325
|
.concat([{ name: input, value: input }]); // Add the input as a possible choice
|
|
@@ -568,12 +568,7 @@ class Wallet {
|
|
|
568
568
|
const contact = this.db.get('contact', address);
|
|
569
569
|
const recipient = contact ? `${address} (${contact.name})` : address;
|
|
570
570
|
|
|
571
|
-
table.push([
|
|
572
|
-
date,
|
|
573
|
-
recipient,
|
|
574
|
-
token,
|
|
575
|
-
parseFloat(amount).toFixed(3)
|
|
576
|
-
]);
|
|
571
|
+
table.push([date, recipient, token, parseFloat(amount).toFixed(3)]);
|
|
577
572
|
table.push([{ colSpan: 4, content: this.selectedNetwork.explorer + hash }]);
|
|
578
573
|
|
|
579
574
|
console.log(table.toString());
|