Correct. The right and proper thing for you to have done was to approach the neighbour at that point and give your neighbour the right to contribute some of the cost of that wall, so he could use it in the future and you have your compensation in first.