SystemCreateLayout.fromBuffer constructor

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

Implementation

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