SPLTokenMintToCheckedLayout.fromBuffer constructor
Constructs an SPLTokenMintToCheckedLayout instance from buffer.
Implementation
factory SPLTokenMintToCheckedLayout.fromBuffer(List<int> bytes) {
final decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: bytes,
instruction: SPLTokenProgramInstruction.mintToChecked.insturction,
);
return SPLTokenMintToCheckedLayout(
amount: decode["amount"],
decimals: decode["decimals"],
);
}