A long serving state treasurer has resigned as he's increasingly come under fire for his government's growing debt.