VoteProgram.fromBytes constructor

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

Implementation

factory VoteProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId = VoteProgramConst.programId,
}) {
  return VoteProgram(
      layout: VoteProgramLayout.fromBytes(instructionBytes),
      keys: keys,
      programId: programId);
}