hodl-wallet 1.1.8 → 1.2.2

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.mjs +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -353,11 +353,11 @@ class Wallet {
353
353
  amount,
354
354
  hash: receipt.transactionHash
355
355
  };
356
- this.db.add('transactions', this.selectedNetwork.nativeToken, transaction);
356
+ this.db.add('transactions', this.account.address, this.selectedNetwork.nativeToken, transaction);
357
357
  }
358
358
 
359
359
  async showTransactions() {
360
- const history = this.db.values('transactions', this.selectedNetwork.nativeToken) || [];
360
+ const history = this.db.values('transactions', this.account.address, this.selectedNetwork.nativeToken) || [];
361
361
 
362
362
  const table = new Table({
363
363
  head: ['Date', 'Recipient', 'Token', 'Amount'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hodl-wallet",
3
- "version": "1.1.8",
3
+ "version": "1.2.2",
4
4
  "description": "🧊 HODL Wallet - Blazing-fast, transparent, and ad-free crypto wallet!",
5
5
  "main": "index.mjs",
6
6
  "bin": {