async function changePermissionsManager (deployer, permissionsManager, address) {
  const permissionSSCInfo = deployer.getApp('permissions.py', 'clear_state_program.py');

  const changePerManagerParams = {
    type: types.TransactionType.CallApp,
    sign: types.SignType.SecretKey,
    fromAccount: permissionsManager, // asset manager account (fails otherwise)
    appID: permissionSSCInfo.appID,
    payFlags: { totalFee: 1000 },
    appArgs: ['str:change_permissions_manager'],
    accounts: [address]
  };

  console.log(`\n* Updating permissions manager to: ${address} *`);
  await executeTransaction(deployer, changePerManagerParams);
}
/**
 * Only current perm_manager can update permissions_manager to a new address.
 * @param deployer algobDeployer
 * @param address account address to change permissions_manager to
 */
Only current perm_manager can update permissions_manager to a new address.
@param deployer algobDeployer
@param address account address to change permissions_manager to
Only current perm_manager can update permissions_manager to a new address . @param deployer algobDeployer @param address account address to change permissions_manager to
async function changePermissionsManager (deployer, permissionsManager, address) {
  const permissionSSCInfo = deployer.getApp('permissions.py', 'clear_state_program.py');
  const changePerManagerParams = {
    type: types.TransactionType.CallApp,
    sign: types.SignType.SecretKey,
    fromAccount: permissionsManager, 
    appID: permissionSSCInfo.appID,
    payFlags: { totalFee: 1000 },
    appArgs: ['str:change_permissions_manager'],
    accounts: [address]
  };
  console.log(`\n* Updating permissions manager to: ${address} *`);
  await executeTransaction(deployer, changePerManagerParams);
}
async function changePermissionsManager ( deployer , permissionsManager , address ) { const permissionSSCInfo = deployer . getApp ( 'permissions.py' , 'clear_state_program.py' ) ; const changePerManagerParams = { type : types . TransactionType . CallApp , sign : types . SignType . SecretKey , fromAccount : permissionsManager , appID : permissionSSCInfo . appID , payFlags : { totalFee : 1000 } , appArgs : [ 'str:change_permissions_manager' ] , accounts : [ address ] } ; console . log ( ` \n ${ address } ` ) ; await executeTransaction ( deployer , changePerManagerParams ) ; }
Only current perm_manager can update permissions_manager to a new address.
Only current perm_manager can update permissions_manager to a new address .
// asset manager account (fails otherwise)