The Code that Boruto killed wasn't the real one, it was a clone of him. The real one was in a secret base only he knows about updating his body so he could efficiently use white karma.
He had finally woken up, after 3 years, his body was prepared now. His first words were...
The Shinobi world will meet its end.