Historical Rules · 3 May 2019
Rule 107.3g
Official source text from the 3 May 2019 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.