From 840c3d0e6faf4e47e3dedeff238cae5302b1a24b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Marcos=20Goulart?= <3228151+CassioMG@users.noreply.github.com> Date: Wed, 22 Feb 2023 13:52:18 -0300 Subject: [PATCH] Make sure "kind" param works on fetchTransactions (#336) --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/transfers/TransferProvider.ts | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c225fc1..dd9c6c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ ## In master +## [v0.9.0](https://github.com/stellar/js-stellar-wallets/compare/v0.8.0...v0.9.0) + +- Make sure "kind" param works on fetchTransactions + +## [v0.8.0](https://github.com/stellar/js-stellar-wallets/compare/v0.7.0-rc.0...v0.8.0) + +- Update stellar-sdk and add keystore support for browser storage + ## [v0.7.0-rc.0](https://github.com/stellar/js-stellar-wallets/compare/v0.6.0-rc.1...v0.7.0-rc.0) This release updates the SDK to accommodate latest changes from [SEP-24 spec](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md#changelog): diff --git a/package.json b/package.json index 314e984..80af625 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stellar/wallet-sdk", - "version": "0.8.0", + "version": "0.9.0", "description": "Libraries to help you write Stellar-enabled wallets in Javascript", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/transfers/TransferProvider.ts b/src/transfers/TransferProvider.ts index b4481ff..795c859 100644 --- a/src/transfers/TransferProvider.ts +++ b/src/transfers/TransferProvider.ts @@ -204,7 +204,7 @@ export abstract class TransferProvider { if (!params.show_all_transactions) { kind = - params.kind || this.operation === "deposit" ? "deposit" : "withdrawal"; + params.kind || (this.operation === "deposit" ? "deposit" : "withdrawal"); } const response = await fetch(