MetaplexAuctionHouseUpdateAuctionHouseLayout.fromBuffer constructor

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

Constructs the layout from raw bytes.

Implementation

factory MetaplexAuctionHouseUpdateAuctionHouseLayout.fromBuffer(
    List<int> data) {
  final decode = MetaplexAuctionHouseProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: MetaplexAuctionHouseProgramInstruction
          .updateAuctionHouse.insturction);
  return MetaplexAuctionHouseUpdateAuctionHouseLayout(
      canChangeSalePrice: decode["canChangeSalePrice"],
      requiresSignOff: decode["requiresSignOff"],
      sellerFeeBasisPoints: decode["sellerFeeBasisPoints"]);
}