    function requestL2Transaction(
        address _contractL2,
        uint256 _l2Value,
        bytes calldata _calldata,
        uint256 _l2GasLimit,
        uint256 _l2GasPerPubdataByteLimit,
        bytes[] calldata _factoryDeps,
        address _refundRecipient
    ) external payable nonReentrant senderCanCallFunction(s.allowList) returns (bytes32 canonicalTxHash) {
	L2CanonicalTransaction memory transaction = _serializeL2Transaction(_priorityOpParams, _calldata, _factoryDeps);

	bytes memory transactionEncoding = abi.encode(transaction);

	TransactionValidator.validateL1ToL2Transaction(transaction, transactionEncoding, s.priorityTxMaxGasLimit);
	let gasLimitForTx, reservedGas := getGasLimitForTx(
		innerTxDataOffset, 
		transactionIndex, 
		gasPerPubdata, 
		L1_TX_INTRINSIC_L2_GAS(), 
		L1_TX_INTRINSIC_PUBDATA()
	)
	let gasPrice := getMaxFeePerGas(innerTxDataOffset)
	let txInternalCost := safeMul(gasPrice, gasLimit, "poa")
	let value := getValue(innerTxDataOffset)
	if lt(getReserved0(innerTxDataOffset), safeAdd(value, txInternalCost, "ol")) {
		assertionError("deposited eth too low")
	}
		if gt(gasLimitForTx, gasUsedOnPreparation) {
			let potentialRefund := 0

			potentialRefund, success := getExecuteL1TxAndGetRefund(txDataOffset, sub(gasLimitForTx, gasUsedOnPreparation))
	let gasBeforeExecution := gas() 
	success := ZKSYNC_NEAR_CALL_executeL1Tx(
		callAbi,
		txDataOffset
	)
	// If the success is zero, we will revert in order
	// to revert the minting of ether to the user
	if iszero(success) {
		nearCallPanic()
	}
	/// @dev Used to panic from the nearCall without reverting the parent frame.
	/// If you use `revert(...)`, the error will bubble up from the near call and
	/// make the bootloader to revert as well. This method allows to exit the nearCall only.
	function nearCallPanic() {
		// Here we exhaust all the gas of the current frame.
		// This will cause the execution to panic.
		// Note, that it will cause only the inner call to panic.
		precompileCall(gas())
	}
forge test --via-ir -vv
[PASS] test_actual_gas_spent_on_success() (gas: 47121)
Logs:
  Nearcall callAbi: 100000000
  gasSpentOnExecution: 31533
  success:  true
  potentialRefund: 99968467

[PASS] test_no_gas_refund_on_failure() (gas: 101606767)
Logs:
  Nearcall callAbi: 100000000
  gasSpentOnExecution: 101591221
  success:  false
  potentialRefund: 0

Test result: ok. 2 passed; 0 failed; finished in 604.85ms
