California Code
CHAPTER 1 - Definition
Section 1549.

1549. A contract is an agreement to do or not to do a certain thing.

(Enacted 1872.)