Skip to content

Commit

Permalink
AUDIT: M-01 restaking_config isn’t verified, allowing to supply a fak…
Browse files Browse the repository at this point in the history
…e account (#50)

Added Config check
  • Loading branch information
coachchucksol authored Jan 16, 2025
1 parent a10a74e commit 485b038
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions program/src/register_vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub fn process_register_vault(program_id: &Pubkey, accounts: &[AccountInfo]) ->
return Err(ProgramError::NotEnoughAccountKeys);
};

Config::load(restaking_program_id.key, restaking_config, false)?;

Check failure on line 21 in program/src/register_vault.rs

View workflow job for this annotation

GitHub Actions / build

cannot find value `restaking_program_id` in this scope

Check failure on line 21 in program/src/register_vault.rs

View workflow job for this annotation

GitHub Actions / lint

cannot find value `restaking_program_id` in this scope
VaultRegistry::load(program_id, ncn.key, vault_registry, true)?;
Ncn::load(&jito_restaking_program::id(), ncn, false)?;
Vault::load(&jito_vault_program::id(), vault, false)?;
Expand Down

0 comments on commit 485b038

Please sign in to comment.