NameServiceUpdateLayout.fromBuffer constructor

NameServiceUpdateLayout.fromBuffer(
  1. List<int> data
)

Creates a NameServiceUpdateLayout instance from buffer data.

Implementation

factory NameServiceUpdateLayout.fromBuffer(List<int> data) {
  Map<String, dynamic> decode = ProgramLayout.decodeAndValidateStruct(
    layout: _layout,
    bytes: data,
    instruction: NameServiceProgramInstruction.update.insturction,
  );
  return NameServiceUpdateLayout(
    inputData: decode["inputData"],
    offset: decode["offset"],
  );
}