AddressLookupTableProgram.deactivateLookupTable constructor

AddressLookupTableProgram.deactivateLookupTable({
  1. required SolAddress authority,
  2. required SolAddress lookupTable,
})

Creates an instruction to deactivate a lookup table.

Implementation

factory AddressLookupTableProgram.deactivateLookupTable({
  /// Account which is the current authority.
  required SolAddress authority,

  /// Address lookup table account to deactivate.
  required SolAddress lookupTable,
}) {
  return AddressLookupTableProgram(
    layout: const AddressLookupDeactiveLookupTableLayout(),
    keys: [
      lookupTable.toWritable(),
      authority.toSigner(),
    ],
    programId: AddressLookupTableProgramConst.programId,
  );
}