Skip to content

Commit b988661

Browse files
Small fixes
Co-authored-by: Samuel Moelius <[email protected]>
1 parent 5fb8bc0 commit b988661

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 EXPECTED_ACCOUNT.owner != program_id {
36-
return Err(ProgramError::IncorrectProgramId);
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)