Historical Rules · 17 April 2020
Rule 107.3g
Official source text from the 17 April 2020 Rules release
If an effect instructs a player to pay an object’s mana cost that includes {X}, the value of X is treated as 0 unless the object is a spell on the stack. In that case, the value of X is the value chosen or determined for it as the spell was cast.