If the contribution is made under a contract with the owner and for an agreed price, the lien as against the owner must be for the sum so agreed upon, otherwise, and in all cases as against others than the owner, it must be for the reasonable value of the work done and of the skill and material furnished.
N.D.C.C. § 35-27-06