AddressExtendLookupTableLayout.fromBuffer constructor

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

Constructs the layout from raw bytes.

Implementation

factory AddressExtendLookupTableLayout.fromBuffer(List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction:
          AddressLookupTableProgramInstruction.extendLookupTable.insturction);
  return AddressExtendLookupTableLayout(
      addresses: (decode["addresses"] as List).cast<SolAddress>());
}