Russia was also communist in Soviet times, and it's not like the slate was completely wiped clean when the Soviet Union fell. IIRC the Russian Federation also is officially the successor state to the Soviet Union, and took on its treaty obligations, etc.