AddressLookupCreateLookupTableLayout.fromBuffer constructor

AddressLookupCreateLookupTableLayout.fromBuffer(
  1. List<int> data
)

Constructs the layout from raw bytes.

Implementation

factory AddressLookupCreateLookupTableLayout.fromBuffer(List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction:
          AddressLookupTableProgramInstruction.createLookupTable.insturction);
  return AddressLookupCreateLookupTableLayout(
      recentSlot: decode["recentSlot"], bumpSeed: decode["bumpSeed"]);
}