Make certain fields of `OneShotUpgradeParameters` optional
Clarification and motivation
During one shot upgrade (Upgrade
entrypoint) one must supply "newCode" :! SomeUContractRouter
and "newPermCode" :! SomePermanentImpl (VerPermanent ver)
. Those have non-negligible size and sometimes don't have to be updated. In such cases it's more efficient to just not pass them at all.
Acceptance criteria
Two aforementioned fields of OneShotUpgradeParameters
are made optional (Maybe
) and are not modified during upgrade if they are Nothing
.