From 3bcab6b66f64a470b376a9a8709a3cbae4aaedd5 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Wed, 9 Oct 2024 11:37:53 -0300 Subject: [PATCH 1/2] Fix: invoice payment with POL/MATIC --- packages/bitcore-wallet-client/src/lib/common/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/bitcore-wallet-client/src/lib/common/utils.ts b/packages/bitcore-wallet-client/src/lib/common/utils.ts index ba5b8830093..1a102e09c11 100644 --- a/packages/bitcore-wallet-client/src/lib/common/utils.ts +++ b/packages/bitcore-wallet-client/src/lib/common/utils.ts @@ -565,6 +565,10 @@ export class Utils { if (coin.toLowerCase() === chain.toLowerCase()) { return coin.toUpperCase(); } + // TODO - remove this special case once migration to POL is complete + if (coin.toLowerCase() === 'pol') { + return 'MATIC'; + } const suffix = Constants.EVM_CHAINSUFFIXMAP[chain.toLowerCase()]; const coinIsAChain = !!Constants.EVM_CHAINSUFFIXMAP[coin.toLowerCase()]; if (suffix && (coinIsAChain || chain.toLowerCase() !== 'eth')) { From d7d518209422cf5c7772808cba25f11ba874e75f Mon Sep 17 00:00:00 2001 From: Justin Langston Date: Wed, 9 Oct 2024 15:03:25 -0400 Subject: [PATCH 2/2] v10.5.4 --- lerna.json | 2 +- packages/bitcore-node/package-lock.json | 4 ++-- packages/bitcore-node/package.json | 4 ++-- packages/bitcore-wallet-client/package-lock.json | 4 ++-- packages/bitcore-wallet-client/package.json | 2 +- packages/bitcore-wallet/package-lock.json | 4 ++-- packages/bitcore-wallet/package.json | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lerna.json b/lerna.json index 7c0569e84d6..81f2ac459e7 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "lerna": "2.9.1", - "version": "10.5.3", + "version": "10.5.4", "packages": [ "packages/[^insight]*" ] diff --git a/packages/bitcore-node/package-lock.json b/packages/bitcore-node/package-lock.json index d52b283d49f..1fa1310ef15 100644 --- a/packages/bitcore-node/package-lock.json +++ b/packages/bitcore-node/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitcore-node", - "version": "10.5.3", + "version": "10.5.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bitcore-node", - "version": "10.5.3", + "version": "10.5.4", "license": "MIT", "dependencies": { "abi-decoder": "2.4.0", diff --git a/packages/bitcore-node/package.json b/packages/bitcore-node/package.json index 644fd0a95bb..55f77bdd615 100644 --- a/packages/bitcore-node/package.json +++ b/packages/bitcore-node/package.json @@ -4,7 +4,7 @@ "engines": { "node": ">=18.0.0" }, - "version": "10.5.3", + "version": "10.5.4", "author": "Justin Langston ", "contributors": [ "Justin Langston ", @@ -99,7 +99,7 @@ "bitcore-p2p": "^10.5.3", "bitcore-p2p-cash": "^10.5.3", "bitcore-p2p-doge": "^10.5.3", - "bitcore-wallet-client": "^10.5.3", + "bitcore-wallet-client": "^10.5.4", "cors": "2.8.4", "crypto-rpc": "https://github.com/bitpay/crypto-rpc.git#370b201c98f4616b378290dc30486df5c1c769e0", "crypto-wallet-core": "^10.5.3", diff --git a/packages/bitcore-wallet-client/package-lock.json b/packages/bitcore-wallet-client/package-lock.json index 0ce5c373afb..5f1387507b3 100644 --- a/packages/bitcore-wallet-client/package-lock.json +++ b/packages/bitcore-wallet-client/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitcore-wallet-client", - "version": "10.5.3", + "version": "10.5.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bitcore-wallet-client", - "version": "10.5.3", + "version": "10.5.4", "license": "MIT", "dependencies": { "ajv": "6.12.0", diff --git a/packages/bitcore-wallet-client/package.json b/packages/bitcore-wallet-client/package.json index 3b9f371295d..8a0d207b014 100644 --- a/packages/bitcore-wallet-client/package.json +++ b/packages/bitcore-wallet-client/package.json @@ -2,7 +2,7 @@ "name": "bitcore-wallet-client", "description": "Client for bitcore-wallet-service", "author": "BitPay Inc", - "version": "10.5.3", + "version": "10.5.4", "license": "MIT", "main": "ts_build/index.js", "types": "ts_build/index.d.js", diff --git a/packages/bitcore-wallet/package-lock.json b/packages/bitcore-wallet/package-lock.json index c9f2f9d3edf..352eb3a5931 100644 --- a/packages/bitcore-wallet/package-lock.json +++ b/packages/bitcore-wallet/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitcore-wallet", - "version": "10.5.3", + "version": "10.5.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bitcore-wallet", - "version": "10.5.3", + "version": "10.5.4", "dependencies": { "async": "^2.5.0", "commander": "^2.6.0", diff --git a/packages/bitcore-wallet/package.json b/packages/bitcore-wallet/package.json index c9e53ae90b8..defd1b8e7d5 100644 --- a/packages/bitcore-wallet/package.json +++ b/packages/bitcore-wallet/package.json @@ -2,7 +2,7 @@ "name": "bitcore-wallet", "description": "A CLI Mutisig HD Bitcoin Wallet, demo for Bitcore Wallet Service", "author": "BitPay Inc", - "version": "10.5.3", + "version": "10.5.4", "keywords": [ "bitcoin", "copay", @@ -19,7 +19,7 @@ "dependencies": { "async": "^2.5.0", "bitcore-lib": "^10.5.3", - "bitcore-wallet-client": "^10.5.3", + "bitcore-wallet-client": "^10.5.4", "commander": "^2.6.0", "lodash": "^3.3.1", "moment": "^2.9.0",