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