MemoProgram.fromBytes constructor

MemoProgram.fromBytes({
  1. required List<AccountMeta> keys,
  2. required List<int> instructionBytes,
  3. SolAddress programId = MemoProgramConst.programId,
})

Implementation

factory MemoProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId = MemoProgramConst.programId,
}) {
  return MemoProgram._(
      layout: MemoLayout.fromBuffer(instructionBytes),
      keys: keys,
      programId: programId);
}