MetaplexAuctioneerExecuteSaleLayout.fromBuffer constructor
Constructs the layout from raw bytes.
Implementation
factory MetaplexAuctioneerExecuteSaleLayout.fromBuffer(List<int> data) {
final decode = MetaplexAuctioneerProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction:
MetaplexAuctioneerProgramInstruction.executeSale.insturction);
return MetaplexAuctioneerExecuteSaleLayout(
escrowPaymentBump: decode["escrowPaymentBump"],
freeTradeStateBump: decode["freeTradeStateBump"],
programAsSignerBump: decode["programAsSignerBump"],
auctioneerAuthorityBump: decode["auctioneerAuthorityBump"],
buyerPrice: decode["buyerPrice"],
tokenSize: decode["tokenSize"]);
}