Skip to content

Commit

Permalink
chore: update dependency for http provider (#530)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

- update http provider dependency to the latest

## Related Issue Or Context
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Otherwise, describe context and motivation for change herre -->

Closes: #<issue>

## How Has This Been Tested? Testing details.
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have ensured that all acceptance criteria (or expected behavior)
from issue are met
- [ ] I have updated the documentation locally and in chainbridge-docs.
- [ ] I have added tests to cover my changes.
- [ ] I have ensured that all the checks are passing and green, I've
signed the CLA bot

---------

Co-authored-by: Saad Ahmed Siddiqui <[email protected]>
  • Loading branch information
wainola and saadahmsiddiqui authored Sep 11, 2024
1 parent 65d0712 commit 63aa84b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/utils/src/liquidity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Network, ResourceType } from '@buildwithsygma/core';
import type { createFungibleAssetTransfer } from '@buildwithsygma/evm';
import { getEvmHandlerBalance } from '@buildwithsygma/evm';
import type { createSubstrateFungibleAssetTransfer } from '@buildwithsygma/substrate/src';
import { HttpProvider } from 'web3-providers-http';
import * as Web3ProvidersHttp from 'web3-providers-http';

import { getSubstrateHandlerBalance } from './substrate/balances.js';

Expand Down Expand Up @@ -41,7 +41,7 @@ export async function hasEnoughLiquidity(

switch (destination.type) {
case Network.EVM: {
const provider = new HttpProvider(destinationProviderUrl);
const provider = new Web3ProvidersHttp.HttpProvider(destinationProviderUrl);
const evmHandlerBalance = await getEvmHandlerBalance(
provider as unknown as Eip1193Provider,
resource as EvmResource,
Expand Down

0 comments on commit 63aa84b

Please sign in to comment.