You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated canister will look something like this:
// Create variables for each post_upgrade paramletinitialized: boolean=false;letdeployParam0: any;letdeployParam1: any;exportdefaultCanister{init: ([bool,text],(param0,param1)=>{ensureParamsCorrectlyOrdered(param0,param1);deployParam0=param0;deployParam1=param1;}),postUpgrade: ([bool,text],(param0,param1)=>{ensureParamsCorrectlyOrdered(params,param1);deployParam0=param0;deployParam1=param1;}),// create a method to retrieve the stored valuesgetDeployParams: query([],Tuple(bool,bool,text),()=>{return[initialized,initParam0,initParam1]})}
Subtasks
Ensure init and post-upgrade params are the same types
Pass different values for init and postDeploy (maybe?)
Support 0 parameters
have multiple deploys in the tests with different postUpgrade params for each.
The text was updated successfully, but these errors were encountered:
The generated canister will look something like this:
Subtasks
The text was updated successfully, but these errors were encountered: