SPLTokenFreezAccountLayout.fromBuffer constructor

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

Constructs an SPLTokenFreezAccountLayout instance from buffer.

Implementation

factory SPLTokenFreezAccountLayout.fromBuffer(List<int> bytes) {
  ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: bytes,
      instruction: SPLTokenProgramInstruction.freezeAccount.insturction);
  return SPLTokenFreezAccountLayout();
}