AddressLookupTableProgram.deactivateLookupTable constructor
AddressLookupTableProgram.deactivateLookupTable({
- required SolAddress authority,
- 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,
);
}