I have a geometric line bundle $L$ on $\mathbb{P}^1 = \{[x_0:x_1]\}$. With respect to the standard affine cover $U_0 = \{x_0 \neq 0\}$ and $U_1 = \{x_1 \neq 0\}$, I have the transition function $[x_0:x_1] \mapsto (\frac{x_0}{x_1})^n$. If I'm not mistaken, the invertible sheaf of sections $\mathscr{L}$ associated to this line bundle should be \begin{align*} \mathscr{L}(U) = \{&(h_0: U \cap U_0 \to k, h_1: U \cap U_1 \to k) \mid \\ &h_0([x_0:x_1]) = (\frac{x_0}{x_1})^n h_1([x_0:x_1]) \text{ on } U \cap U_0 \cap U_1\} \\ \Gamma(\mathbb{P}^1, \mathscr{L}) = \{&(h_0 \in k[x_0,x_1,x_0^{-1}], h_1 \in k[x_0,x_1,x_1^{-1}]) \mid \frac{h_0}{x_0^n} = \frac{h_1}{x_1^n} \text{ on } U \cap U_0 \cap U_1\}. \end{align*}
By the classification of line bundles on projective space, the sheaf $\mathscr{L}$ is isomorphic to $\mathscr{O}_{\mathbb{P}^1}(m)$ for some $m \in \mathbb{Z}$. My question is: which $m$ is it?
My guess is that $\mathscr{L} \cong \mathscr{O}_{\mathbb{P}^1}(-n)$, but I can't seem to show this. In fact, the sheaf I wrote down doesn't even seem to be coherent since there is no bound on the degrees of $h_0$ and $h_1$, so I must be doing something wrong. Can someone help me out?