Under CCP 1582, a contract providing for a 10% finder’s fee to a firm that alerted defendant to the escheat of his property to the State of California was contrary to public policy and void because it was entered into between the date that the holder of the escheatable property reported the property to the state and the date (seven months later) when the holder was required to transfer the property to the state.