From 4685db95887f3345f0ffbdcf6caa736483ffedcc Mon Sep 17 00:00:00 2001 From: Polybius93 <99192647+Polybius93@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:39:57 +0200 Subject: [PATCH] fix: modifiy getContractVaults function of EthereumHandler because it was calling itself (#25) --- package.json | 2 +- src/network-handlers/ethereum-handler.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b6350de..ab52d7b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "dlc-btc-lib", - "version": "2.1.1", + "version": "2.1.2", "description": "This library provides a comprehensive set of interfaces and functions for minting dlcBTC tokens on supported blockchains.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/network-handlers/ethereum-handler.ts b/src/network-handlers/ethereum-handler.ts index d2a7ca6..48d23e5 100644 --- a/src/network-handlers/ethereum-handler.ts +++ b/src/network-handlers/ethereum-handler.ts @@ -4,6 +4,7 @@ import { getAddressDLCBTCBalance, getAllAddressVaults, getAttestorGroupPublicKey, + getContractVaults, getDLCBTCTotalSupply, getEthereumContracts, getLockedBTCBalance, @@ -139,7 +140,7 @@ export class EthereumHandler { async getContractVaults(amount: number = 50): Promise { try { - return await this.getContractVaults(amount); + return await getContractVaults(this.ethereumContracts.dlcManagerContract, amount); } catch (error) { throw new EthereumError(`Could not fetch All Vaults: ${error}`); }