Skip to content

Commit

Permalink
update wh reference
Browse files Browse the repository at this point in the history
  • Loading branch information
artursapek committed Mar 11, 2024
1 parent 96cfa1a commit 3db33da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wormhole-connect/src/utils/gas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const estimateAverageGasFee = async (
chain: ChainName | ChainId,
gasLimit: BigNumberish,
): Promise<BigNumber> => {
const provider = wh.mustGetProvider(chain);
const provider = config.wh.mustGetProvider(chain);
const gasPrice = await provider.getGasPrice();
// This is a naive estimate 30% higher than what the oracle says
return gasPrice.mul(gasLimit).mul(130).div(100);
Expand Down

0 comments on commit 3db33da

Please sign in to comment.