The consideration of any contract or agreement, required by the provisions of this chapter to be in writing, need not be set forth in the contract or agreement, or in the note or memorandum thereof, but may be proved by any other legal evidence.