Suppose there were versions of a canister WASM W1W2…Wn. Suppose also, then in this chain only Wp and Wq (p<q) have attached migration function.
Can I be sure that, instead of calling all the upgrades W1→W2, W2→W3, …, W(n-1)→Wn, it’s enough to call only W(p-1)→Wp, W(q-1)→Wq, and Wq→Wn to finish the upgrade?
I think, yes, I can shorten, because accordingly the specs migration functions support subtyping. But I am asking to be sure.
I tried to ask the forum’s AI, but its answer is ambiguous and unconvincing.