If a city or town fails to set aside and pay into the special fund created for the payment of revenue bonds and warrants the amount which it has obligated itself in the ordinance creating the fund to set aside and pay therein, the owner of any bond or warrant issued against the fund may bring suit against the city or town to compel it to do so.