The petition shall be accompanied by a sufficient undertaking, to be approved by the board of supervisors, in double the amount of the probable cost of forming the district, conditioned that the sureties shall pay all of the costs in case the formation is not effected.