MemoProgram constructor

MemoProgram({
  1. required MemoLayout layout,
  2. List<SolAddress> pubKeys = const [],
})

Constructs a MemoProgram instruction.

Implementation

factory MemoProgram({
  required MemoLayout layout,
  List<SolAddress> pubKeys = const [],
}) {
  return MemoProgram._(
    layout: layout,
    keys: pubKeys.map((e) => e.toSigner()).toList(),
    programId: MemoProgramConst.programId,
  );
}