A galvanic cell is constructed with a magnesium electrode in 1.0 M Mg(NO₃)₂ and a silver electrode in 1.0 M AgNO₃. After the cell operates for several minutes, the magnesium strip appears thinner while a bright silver layer builds up on the other electrode. Identify the metal that undergoes oxidation.