Which sentence uses a metaphor?

 - The wave was a towering wall rising from the sea.
 - The wave rose from the sea like a towering wall.
This sentence uses a metaphor:
The wave was a towering wall rising from the sea.
The words wave and wall are compared without the word like or as.
This sentence uses a simile:
The wave rose from the sea like a towering wall.
The words wave and wall are compared using the word like.