Skip to content

Commit

Permalink
fix(allocation): OS-SQD-SUG-00
Browse files Browse the repository at this point in the history
  • Loading branch information
ogmedia committed Jul 22, 2022
1 parent 386f900 commit 2220864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions programs/squads-mpl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,12 @@ pub mod squads_mpl {
}

#[derive(Accounts)]
#[instruction(threshold: u16, create_key: Pubkey)]
#[instruction(threshold: u16, create_key: Pubkey, members: Vec<Pubkey>)]
pub struct Create<'info> {
#[account(
init,
payer = creator,
space = Ms::MAXIMUM_SIZE,
space = Ms::SIZE_WITHOUT_MEMBERS + (members.len() * 32),
seeds = [b"squad", create_key.as_ref(), b"multisig"], bump
)]
pub multisig: Account<'info, Ms>,
Expand Down
3 changes: 0 additions & 3 deletions programs/squads-mpl/src/state/ms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ impl Ms {
1 + // allow external execute
4; // for vec length

pub const MAXIMUM_SIZE: usize = (32 * 10) + Self::SIZE_WITHOUT_MEMBERS; // initial space for 10 keys


pub fn init (&mut self, threshold: u16, create_key: Pubkey, members: Vec<Pubkey>, bump: u8) -> Result<()> {
self.threshold = threshold;
self.keys = members;
Expand Down

0 comments on commit 2220864

Please # to comment.