MetaplexFixedPriceSaleChangeMarketLayout.fromBuffer constructor

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

Constructs the layout from raw bytes.

Implementation

factory MetaplexFixedPriceSaleChangeMarketLayout.fromBuffer(List<int> data) {
  final decode = MetaplexFixedPriceSaleProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction:
          MetaplexFixedPriceSaleProgramInstruction.changeMarket.insturction);
  return MetaplexFixedPriceSaleChangeMarketLayout(
      newName: decode["newName"],
      newDescription: decode["newDescription"],
      mutable: decode["mutable"],
      newPrice: decode["newPrice"],
      newPiecesInOneWallet: decode["newPiecesInOneWallet"]);
}