SystemAssignLayout.fromBuffer constructor

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

Implementation

factory SystemAssignLayout.fromBuffer(List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: SystemProgramInstruction.assign.insturction);
  return SystemAssignLayout(programId: decode["programId"]);
}