pub fn from_request(
        request: TransactionRequest,
        max_tx_size: usize,
        allow_no_target: bool,
    ) -> Result<Self, SerializationTransactionError> {
        let tx = Self::from_request_unverified(request, allow_no_target)?;
        tx.check_encoded_size(max_tx_size)?;
        Ok(tx)
    }
Converts a request into a transaction.

# Arguments

- `allow_no_target` enables / disables transactions without target (i.e., `to` field).
This field can only be absent for EVM deployment transactions.
core/lib/types/src/transaction_request.rs