Skip to content

Commit c7c1bf9

Browse files
authored
Missing Owner mitigation fix
Changed mitigation to ref solana_program lib instead
1 parent cfd0199 commit c7c1bf9

File tree

1 file changed

+1
-1
lines changed
  • not-so-smart-contracts/solana/ownership_check

1 file changed

+1
-1
lines changed

Diff for: not-so-smart-contracts/solana/ownership_check/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn set_owner(program_id: &Pubkey, new_owner: Pubkey, accounts: &[AccountInfo]) -
3333

3434
```rust
3535
if current_owner.owner != program_id {
36-
return Err(InvalidAccountOwner.into());
36+
return Err(ProgramError::IncorrectProgramId);
3737
}
3838
```
3939
For further reading on different forms of account verification in Solana and implementation refer to the [Solana Cookbook](https://solanacookbook.com/references/programs.html#how-to-verify-accounts)

0 commit comments

Comments
 (0)