SPLToken2022WithdrawWithheldTokensFromAccountsLayout.fromBuffer constructor

SPLToken2022WithdrawWithheldTokensFromAccountsLayout.fromBuffer(
  1. List<int> bytes
)

Implementation

factory SPLToken2022WithdrawWithheldTokensFromAccountsLayout.fromBuffer(
    List<int> bytes) {
  final decode = ProgramLayout.decodeAndValidateStruct(
    layout: _layout,
    bytes: bytes,
    instruction: SPLTokenProgramInstruction.transferFeeExtension.insturction,
  );
  return SPLToken2022WithdrawWithheldTokensFromAccountsLayout(
      numTokenAccounts: decode["numTokenAccounts"]);
}