If a party fails to erect or maintain the part of a fence assigned under section 344.06, the aggrieved party may erect and maintain the fence, and be entitled to double the cost of the construction and maintenance as ascertained and recovered in section 344.05 in the case of repairs.