The government can always unilaterally change the terms. That’s the defining feature of a government, the monopoly on the legitimate use of force. See when the US went off the gold standard [1].
[1] https://www.history.com/this-day-in-history/fdr-takes-united...