upgrade
Upgrade contract's state object to a new state object.
Throws
if the given state object is not one that can be upgraded. This can be either that the class is incompatible, or that the data inside the state object cannot be upgraded for some reason.