I was discussing with @icme about the new migration pattern and my desire to jump in and migrate() away from the old migration pattern that @ZhenyaUsenko created that has been pretty dependable. Here is an example of the new migration in ninja: ICP Ninja
A couple things popped up and I wanted to get some insight on how to handle them.
In my migration pattern, in the past, Iâve used caller, canisterId, upgrade args, and previous state to run a migration for various reasons. Examples of each:
- Canister ID - making sure a call is a self call
- Caller - setting admin permissions
- Upgrade Args - pushing some new data in that needs to go into these new state variableâŠlikely avoidable if it is your canister, but if this is a canister template youâd want to pass particular stuff in.
- Previous state - obviously.
It looks like I only get number 4 in this new pattern. What are the prospects of getting ther rest of the info.