Skip to content

Commit

Permalink
Allow unsetting proposed_owner
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Jul 27, 2022
1 parent e6f4a1c commit 9f941f3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion contracts/programs/access-controller/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ pub mod access_controller {
ctx: Context<TransferOwnership>,
proposed_owner: Pubkey,
) -> Result<()> {
require!(proposed_owner != Pubkey::default(), InvalidInput);
let state = &mut *ctx.accounts.state.load_mut()?;
state.proposed_owner = proposed_owner;
Ok(())
Expand Down
1 change: 0 additions & 1 deletion contracts/programs/ocr2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ pub mod ocr2 {
ctx: Context<TransferOwnership>,
proposed_owner: Pubkey,
) -> Result<()> {
require!(proposed_owner != Pubkey::default(), InvalidInput);
let mut state = ctx.accounts.state.load_mut()?;
state.config.proposed_owner = proposed_owner;
Ok(())
Expand Down
2 changes: 0 additions & 2 deletions contracts/programs/store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ pub mod store {
ctx: Context<TransferFeedOwnership>,
proposed_owner: Pubkey,
) -> Result<()> {
require!(proposed_owner != Pubkey::default(), InvalidInput);
ctx.accounts.feed.proposed_owner = proposed_owner;
Ok(())
}
Expand Down Expand Up @@ -199,7 +198,6 @@ pub mod store {
ctx: Context<TransferStoreOwnership>,
proposed_owner: Pubkey,
) -> Result<()> {
require!(proposed_owner != Pubkey::default(), InvalidInput);
let store = &mut *ctx.accounts.store.load_mut()?;
store.proposed_owner = proposed_owner;
Ok(())
Expand Down

0 comments on commit 9f941f3

Please sign in to comment.