In a decision that could soon allow Walmart to stock its retail shelves with whiskey, an Austin federal judge has struck down a Texas law prohibiting public corporations from obtaining permits to sell hard liquor in the state.

U.S. District Judge Robert Pitman ruled that the section of the Texas Alcoholic Beverage Code, which prevents public corporations from obtaining so-called “package store permits,” violates the dormant commerce clause of the U.S. Constitution. That doctrine forbids states from enacting laws that discriminate against interstate commerce.