• Scales the provided gas limit using a coefficient to ensure acceptance of L1->L2 transactions.

    This function adjusts the gas limit by multiplying it with a coefficient calculated from the L1_FEE_ESTIMATION_COEF_NUMERATOR and L1_FEE_ESTIMATION_COEF_DENOMINATOR constants.

    Parameters

    • gasLimit: bigint

      The gas limit to be scaled.

    Returns bigint

    const scaledGasLimit = utils.scaleGasLimit(10_000);
    // scaledGasLimit = 12_000