When a law changes the terms of legal contract between parties either in time or mode of performance, or imposes new conditions, or dispenses with those expressed, or authorizes for its satisfaction something different from that provided in its terms