SPLToken2022InitializeDefaultAccountStateLayout.fromBuffer constructor
SPLToken2022InitializeDefaultAccountStateLayout.fromBuffer(
- List<int> bytes
)
Implementation
factory SPLToken2022InitializeDefaultAccountStateLayout.fromBuffer(
List<int> bytes) {
final decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: bytes,
instruction: SPLTokenProgramInstruction
.defaultAccountStateExtension.insturction);
return SPLToken2022InitializeDefaultAccountStateLayout(
accountState: AccountState.fromJson(decode["accountState"]));
}