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
  • Loading branch information
Polybius93 committed Aug 1, 2024
1 parent 5850ef9 commit 9d62454
Showing 1 changed file with 2 additions and 1 deletion.
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 9d62454

Please sign in to comment.