How does the sentence end?

The railing of the deck had to be built at a certain minimum height to adhere to the building code, because the
deck was elevated.