Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Feb 21, 2024
1 parent 19e4964 commit a07baeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/relayFeeCalculator/chain-queries/baseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export default abstract class QueryBase implements QueryInterface {
getGasCosts(
deposit: Deposit,
fillAmount: BigNumberish,
relayAddress = DEFAULT_SIMULATED_RELAYER_ADDRESS
relayer = DEFAULT_SIMULATED_RELAYER_ADDRESS
): Promise<TransactionCostEstimate> {
const relayer = relayAddress ?? this.simulatedRelayerAddress;
relayer ??= this.simulatedRelayerAddress;
return isV2Deposit(deposit)
? this.getV2GasCosts(deposit, fillAmount, relayer)
: this.getV3GasCosts(deposit, relayer);
Expand Down

0 comments on commit a07baeb

Please sign in to comment.