fn check_txn_ops(txn_ops: &[TxnOp]) -> Result<bool>
Checks if the transaction operations are the same type.