Tuesday’s elections for two seats on the North Carolina Supreme Court will hand control over to Republicans, according to unofficial results from the North Carolina State Board of Elections.

The new GOP majority could drastically change how North Carolina law is interpreted on major issues, including abortion, election rules, school funding and guns.

Get full election results for North Carolina and across the country here

There were two races up on the seven-seat state Supreme Court. Republican Trey Allen beat incumbent Democrat Sam Ervin, according to unofficial results from the State Board of Elections. Republican Richard Dietz also won, defeating Democrat Lucy Inman, according to the unofficial results.

Republicans also appeared to sweep the North Carolina Court of Appeals elections, unofficial results show.

The North Carolina Supreme Court, and its Democratic majority, have been at the center of many of the state’s biggest political fights. In recent years they’ve ruled on voter ID, gerrymandering and school funding, siding with the state’s Democrats.

Here are the results in North Carolina’s Supreme Court races as of midnight, with 99% of precincts reporting:

North Carolina Supreme Court

 

Seat 3

Richard Dietz (R): 52.59%

Lucy Inman (D): 47.41%

Seat 5

Trey Allen (R): 52.39%

Sam Ervin IV (D): 47.61%

North Carolina Court of Appeals

Seat 8

Julee Tate Flood (R): 52.62%

Carolyn Jennings Thompson (D): 47.38%

Seat 9

Donna Stroud (R): 54.60%

Brad A. Salmon (D): 45.40%

Seat 10

John M. Tyson (R): 52.94%

Gale Murray Adams (D): 47.06%

Seat 11

Michael J. Stading (R): 53.05%

Darren Jackson (D): 46.95%