AssociatedTokenAccountProgram.fromBytes constructor

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

Implementation

factory AssociatedTokenAccountProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId =
      AssociatedTokenAccountProgramConst.associatedTokenProgramId,
}) {
  return AssociatedTokenAccountProgram(
      layout: AssociatedTokenAccountProgramLayout.fromBytes(instructionBytes),
      keys: keys,
      programId: programId);
}