A Memphis charter school on the brink of closure over the location of its building has signed a lease within Shelby County Schools’ boundaries.

Gateway University High School will move into Holy Nation Church of Memphis on Brownsville Road near Craigmont High School after being in a Memphis suburb since opening in August 2017, according to a spokeswoman for the charter school.

In response, Shelby County Schools will pull its recommendation to revoke the school’s charter, according to the school board’s agenda. The district had called for the school’s closure because of a new state law that prohibits charter schools operating outside of the authorizing district’s limits.

The Tennessee Department of Education gave school leaders until July 1 to comply with an attorney general’s opinion issued in September and to comply with the school’s contract that stated it would operate “within the local school district of Shelby County, Tennessee.” Their previous building was a storefront in Bartlett.

The board was set to vote on the matter Tuesday — five days before the state’s deadline.