Skip to content

Commit 507fcd1

Browse files
authored
Update README.md
1 parent e5e6abd commit 507fcd1

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
@@ -32,7 +32,7 @@ fn set_owner(program_id: &Pubkey, new_owner: Pubkey, accounts: &[AccountInfo]) -
3232
## Mitigation
3333

3434
```rust
35-
if current_owner.owner != program_id {
35+
if EXPECTED_ACCOUNT.owner != program_id {
3636
return Err(ProgramError::IncorrectProgramId);
3737
}
3838
```

0 commit comments

Comments
 (0)