Answer: the government would no longer be able to finance deficits by printing money, and inflation would be under control.
El Salvador adopted the dollar because it's revenue could no longer service the budget. The adoption of the dollar will put a control to inflation since the dollar is the currency it uses to trade in the foreign market.