This is not that simple. If they sell oil, they will get gold from buyer which result in less amount of gold in that country and in return the value of their currency falls. and eventually their economy.
It is a big step forward in Modern economy. They are neglecting every aspect of Modernism. Even challenged modern System of governing, economy, Nation States.. wow