feeAcountPDA static method

ProgramDerivedAddress feeAcountPDA({
  1. required SolAddress auctionHouse,
})

Finds the PDA of an Auction House's fee account.

Implementation

static ProgramDerivedAddress feeAcountPDA(
    {required SolAddress auctionHouse}) {
  return ProgramDerivedAddress.find(seedBytes: [
    MetaplexAuctionHouseProgramConst.auctionHouseSeed.codeUnits,
    auctionHouse.toBytes(),
    MetaplexAuctionHouseProgramConst.feePayerSeed.codeUnits,
  ], programId: MetaplexAuctionHouseProgramConst.programId);
}