MetaplexAuctionHouseAuctioneerWithdrawLayout.fromBuffer constructor

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

Constructs the layout from raw bytes.

Implementation

factory MetaplexAuctionHouseAuctioneerWithdrawLayout.fromBuffer(
    List<int> data) {
  final decode = MetaplexAuctionHouseProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: MetaplexAuctionHouseProgramInstruction
          .auctioneerWithdraw.insturction);
  return MetaplexAuctionHouseAuctioneerWithdrawLayout(
      escrowPaymentBump: decode["escrowPaymentBump"],
      amount: decode["amount"]);
}