MetaplexBubblegumTransferLayout.fromBuffer constructor

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

Implementation

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