MetaplexBubblegumDelegateLayout.fromBuffer constructor

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

Implementation

factory MetaplexBubblegumDelegateLayout.fromBuffer(List<int> data) {
  final decode = MetaplexBubblegumProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: MetaplexBubblegumProgramInstruction.delegate.insturction);
  return MetaplexBubblegumDelegateLayout(
      root: decode['root'],
      dataHash: decode["dataHash"],
      creatorHash: decode["creatorHash"],
      nonce: decode["nonce"],
      index: decode["index"]);
}