MetaplexAuctionHouseAuctioneerCancelLayout.fromBuffer constructor

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

Constructs the layout from raw bytes.

Implementation

factory MetaplexAuctionHouseAuctioneerCancelLayout.fromBuffer(
    List<int> data) {
  final decode = MetaplexAuctionHouseProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: MetaplexAuctionHouseProgramInstruction
          .auctioneerCancel.insturction);
  return MetaplexAuctionHouseAuctioneerCancelLayout(
      buyerPrice: decode["buyerPrice"], tokenSize: decode["tokenSize"]);
}