Skip to content

Commit

Permalink
Fix AUCTION_HOUSE_SIZE calculation (metaplex-foundation#843)
Browse files Browse the repository at this point in the history
* Fix AUCTION_HOUSE_SIZE calculation

* Move 21 freed bytes to padding

Move 21 freed bytes to padding to maintain account size

* remove duplicate code

* update padding to 220
  • Loading branch information
RohanKapurDEV authored Nov 15, 2021
1 parent 133e7c5 commit 6e00b0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rust/auction-house/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ pub mod auction_house {
FEE_PAYER.as_bytes(),
&[auction_house.fee_payer_bump],
];
let auction_house_key = auction_house.key();
let wallet_key = wallet.key();

let escrow_signer_seeds = [
Expand Down Expand Up @@ -1345,12 +1344,13 @@ pub const AUCTION_HOUSE_SIZE: usize = 8 + //key
32 + //treasury mint
32 + //authority
32 + // creator
8 + // bump
8 + // treasury_bump
8 + // fee_payer_bump
1 + // bump
1 + // treasury_bump
1 + // fee_payer_bump
2 + // seller fee basis points
1 + // requires sign off
200; //padding
1 + // can change sale price
220; //padding

#[account]
pub struct AuctionHouse {
Expand Down

0 comments on commit 6e00b0f

Please sign in to comment.