Skip to content

Commit

Permalink
fix(relayFeeCalculator): Cast OPStack provider to correct type (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai authored Jan 3, 2025
1 parent c183a52 commit e3ca948
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@
{
"name": "@across-protocol/sdk",
"author": "UMA Team",
"version": "3.4.0",
"version": "3.4.1",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/reference/sdk",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/relayFeeCalculator/chain-queries/baseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class QueryBase implements QueryInterface {
...unsignedTx,
gasLimit: nativeGasCost, // prevents additional gas estimation call
});
const l1GasCost = await provider.estimateL1GasCost(populatedTransaction);
const l1GasCost = await (provider as L2Provider<providers.Provider>).estimateL1GasCost(populatedTransaction);
const l2GasCost = nativeGasCost.mul(gasPrice);
tokenGasCost = l1GasCost.add(l2GasCost);
} else {
Expand Down

0 comments on commit e3ca948

Please sign in to comment.