Skip to content

Commit c765618

Browse files
committed
removed redundant owner check
1 parent ee6937b commit c765618

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Updated CLI template `states_rs`: Changed `AccountValidate` implementation for `CounterAccount` to use `Authority` type parameter instead of `&Pubkey`, and updated reference type from `Self::Ref<'_>` to `Self::Ptr` (#297)
1414
- Updated CLI template `initialize_rs`: Changed `Seeds` argument in `idl` macro to use `FindCounterAccountSeeds` instead of `FindCounterSeeds` (#297)
1515
- Check the account discriminants during client AccountDeserialize calls (#302)
16+
- Removed redundant account owner check during account creation flow (#303)
1617

1718
### Changed
1819

star_frame/src/account_set/single_set.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,6 @@ where
336336
ctx: &Context,
337337
) -> Result<()> {
338338
let account = *self.account_info();
339-
if !account.owner().fast_eq(&System::ID) {
340-
bail!(ProgramError::InvalidAccountOwner);
341-
}
342339
let current_lamports = account.lamports();
343340
let exempt_lamports = ctx.get_rent()?.minimum_balance(space);
344341

0 commit comments

Comments
 (0)