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 {