Skip to content

Commit

Permalink
fix: modifiy getContractVaults function of EthereumHandler because it…
Browse files Browse the repository at this point in the history
… was calling itself (#25)
  • Loading branch information
Polybius93 authored Aug 1, 2024
1 parent 5850ef9 commit 4685db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/network-handlers/ethereum-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
getAddressDLCBTCBalance,
getAllAddressVaults,
getAttestorGroupPublicKey,
getContractVaults,
getDLCBTCTotalSupply,
getEthereumContracts,
getLockedBTCBalance,
Expand Down Expand Up @@ -139,7 +140,7 @@ export class EthereumHandler {

async getContractVaults(amount: number = 50): Promise<RawVault[]> {
try {
return await this.getContractVaults(amount);
return await getContractVaults(this.ethereumContracts.dlcManagerContract, amount);
} catch (error) {
throw new EthereumError(`Could not fetch All Vaults: ${error}`);
}
Expand Down

0 comments on commit 4685db9

Please sign in to comment.