From ce1a42fe36c7861af4f939adfe461a5330f13fb8 Mon Sep 17 00:00:00 2001 From: axtezy Date: Fri, 2 Sep 2022 10:43:24 +0300 Subject: [PATCH] Fix btc address validation --- package.json | 2 +- src/features/cross-chain/providers/common/cross-chain-trade.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b004c06a6..59bea065ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rubic-sdk", - "version": "2.13.1", + "version": "2.13.2", "description": "Simplify dApp creation", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/features/cross-chain/providers/common/cross-chain-trade.ts b/src/features/cross-chain/providers/common/cross-chain-trade.ts index b51ef7c610..4cae6297c5 100644 --- a/src/features/cross-chain/providers/common/cross-chain-trade.ts +++ b/src/features/cross-chain/providers/common/cross-chain-trade.ts @@ -45,6 +45,7 @@ export abstract class CrossChainTrade { if (isAddressValid) { return; } + throw new WrongReceiverAddressError(); } if (Web3Pure.isAddressCorrect(receiverAddress)) { return;