SPLTokenCreateNativeMintLayout.fromBuffer constructor

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

Constructs an SPLTokenCreateNativeMintLayout instance from buffer.

Implementation

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