SPLToken2022InitializeGroupMemberPointerLayout.fromBuffer constructor
SPLToken2022InitializeGroupMemberPointerLayout.fromBuffer(
- List<int> bytes
)
Implementation
factory SPLToken2022InitializeGroupMemberPointerLayout.fromBuffer(
List<int> bytes) {
final decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: bytes,
instruction:
SPLTokenProgramInstruction.groupMemberPointerExtension.insturction,
);
return SPLToken2022InitializeGroupMemberPointerLayout(
authority: decode["authority"] == SolAddress.defaultPubKey
? null
: decode["authority"],
memberAddress: decode["memberAddress"] == SolAddress.defaultPubKey
? null
: decode["memberAddress"]);
}