SPLTokenRevokeLayout.fromBuffer constructor

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

Constructs an SPLTokenRevokeLayout instance from buffer.

Implementation

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