pub fn create_l2_transaction(
    account: &mut Account,
    fee_per_gas: u64,
    gas_per_pubdata: u64,
) -> L2Tx {
    let fee = Fee {
        gas_limit: (get_intrinsic_constants().l2_tx_intrinsic_gas * 10).into(),
        max_fee_per_gas: fee_per_gas.into(),
        max_priority_fee_per_gas: 0_u64.into(),
        gas_per_pubdata_limit: gas_per_pubdata.into(),
    };
    let tx = account.get_l2_tx_for_execute(
        Execute {
            contract_address: Some(Address::random()),
            calldata: vec![],
            value: Default::default(),
            factory_deps: vec![],
        },
        Some(fee),
    );
    L2Tx::try_from(tx).unwrap()
}
Creates an L2 transaction with randomized parameters.
core/node/vm_runner/src/tests/mod.rs