NameServiceProgram.fromBytes constructor

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

Implementation

factory NameServiceProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId = NameServiceProgramConst.programId,
}) {
  return NameServiceProgram(
      layout: NameServiceProgramLayout.fromBytes(instructionBytes),
      keys: keys,
      programId: programId);
}