I'm trying to show that the curve $f(z,w)=z^4-w^2+1$ has genus 1. The curve is clearly non-singular, so I tried using the degree formula \begin{equation*} g=\frac{(d-1)(d-2)}{2}=\frac{3\cdot2}{2}=3, \end{equation*} but it should be equal to one. I'm not sure where my error is.
Thanks!