Skip to content

Commit

Permalink
removal on request
Browse files Browse the repository at this point in the history
  • Loading branch information
smhussainpk committed Nov 21, 2024
1 parent b8f5787 commit f0609f3
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ pub fn process_initialize(ctx: Context<Initialize>,
require!(btb_price > 0, CustomError::ZeroBTBPrice);
require!(vesting_price > 0, CustomError::ZeroVestingPrice);

// Validate deployer/signer is program owner
require!(
ctx.accounts.signer.key() == *ctx.program_id,
CustomError::Unauthorized
);


let sale_account = &mut ctx.accounts.btb_sale_account;
sale_account.btb = btb;
Expand Down

0 comments on commit f0609f3

Please sign in to comment.