The Ukrainian law makes relections in war times illegal. And this for very good reasons.
Discussion
Convenient.
It's a moot point anyway. Putin and Lavrov are well aware that the current president is just an actor. You cannot sign such contracts with a puppet.