From e3ca9489a637a1816eb475d27e9b794aaaf7c81f Mon Sep 17 00:00:00 2001 From: nicholaspai <9457025+nicholaspai@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:23:48 -0500 Subject: [PATCH] fix(relayFeeCalculator): Cast OPStack provider to correct type (#814) --- package.json | 2 +- src/relayFeeCalculator/chain-queries/baseQuery.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index daa54419..8f7bd9e8 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/src/relayFeeCalculator/chain-queries/baseQuery.ts b/src/relayFeeCalculator/chain-queries/baseQuery.ts index 8e493645..2a1b7b0c 100644 --- a/src/relayFeeCalculator/chain-queries/baseQuery.ts +++ b/src/relayFeeCalculator/chain-queries/baseQuery.ts @@ -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).estimateL1GasCost(populatedTransaction); const l2GasCost = nativeGasCost.mul(gasPrice); tokenGasCost = l1GasCost.add(l2GasCost); } else {