We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5e6abd commit 507fcd1Copy full SHA for 507fcd1
not-so-smart-contracts/solana/ownership_check/README.md
@@ -32,7 +32,7 @@ fn set_owner(program_id: &Pubkey, new_owner: Pubkey, accounts: &[AccountInfo]) -
32
## Mitigation
33
34
```rust
35
- if current_owner.owner != program_id {
+ if EXPECTED_ACCOUNT.owner != program_id {
36
return Err(ProgramError::IncorrectProgramId);
37
}
38
```
0 commit comments