MetaplexBubblegumBurnLayout.fromBuffer constructor

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

Implementation

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