SPLTokenSwapProgram.fromBytes constructor
SPLTokenSwapProgram.fromBytes({
- required List<
AccountMeta> keys, - required List<
int> instructionBytes, - required SolAddress programId,
Implementation
factory SPLTokenSwapProgram.fromBytes({
required List<AccountMeta> keys,
required List<int> instructionBytes,
required SolAddress programId,
}) {
return SPLTokenSwapProgram(
layout: SPLTokenSwapProgramLayout.fromBytes(instructionBytes),
keys: keys,
programId: programId);
}