From abfdf30891d751154aa70e942d35a20e6ce8a8a9 Mon Sep 17 00:00:00 2001 From: Steven Khong Date: Tue, 11 May 2021 23:31:26 +0800 Subject: [PATCH] Bump to v1.2.2, update bignumber.js version --- package.json | 2 +- src/index.ts | 2 +- yarn.lock | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e116ca7..22b6deb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zilswap-sdk", - "version": "1.2.1", + "version": "1.2.2", "description": "Zilswap TypeScript SDK", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/index.ts b/src/index.ts index 8999214..d4c49c4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1273,7 +1273,7 @@ export class Zilswap { const promises = this.observedTxs.map(async (observedTx: ObservedTx) => { const result = await this.zilliqa.blockchain.getTransactionStatus(observedTx.hash) - if (result && result.modificationState == 2) { + if (result && result.modificationState === 2) { // either confirmed or rejected const confirmedTxn = await this.zilliqa.blockchain.getTransaction(observedTx.hash) const receipt = confirmedTxn.getReceipt() diff --git a/yarn.lock b/yarn.lock index a47ff17..7e1f521 100644 --- a/yarn.lock +++ b/yarn.lock @@ -219,9 +219,9 @@ base-x@^3.0.2: safe-buffer "^5.0.1" bignumber.js@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.0.tgz#805880f84a329b5eac6e7cb6f8274b6d82bdf075" - integrity sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A== + version "9.0.1" + resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.1.tgz#8d7ba124c882bfd8e43260c67475518d0689e4e5" + integrity sha512-IdZR9mh6ahOBv/hYGiXyVuyCetmGJhtYkqLBpTStdhEGjegpPlUawydyaF3pbIOFynJTpllEs+NP+CS9jKFLjA== bindings@^1.5.0: version "1.5.0"