AddressLookupTableProgram.freezeLookupTable constructor
AddressLookupTableProgram.freezeLookupTable({
- required SolAddress authority,
- required SolAddress lookupTable,
Creates an instruction to freeze a lookup table.
Implementation
factory AddressLookupTableProgram.freezeLookupTable({
/// Account which is the current authority.
required SolAddress authority,
/// Address lookup table account to freeze.
required SolAddress lookupTable,
}) {
return AddressLookupTableProgram(
layout: const AddressLookupFreezeLookupTableLayout(),
keys: [
lookupTable.toWritable(),
authority.toSigner(),
],
programId: AddressLookupTableProgramConst.programId,
);
}