diff --git a/contracts/programs/ocr2/src/context.rs b/contracts/programs/ocr2/src/context.rs index e367c4c26..bef86fced 100644 --- a/contracts/programs/ocr2/src/context.rs +++ b/contracts/programs/ocr2/src/context.rs @@ -133,6 +133,7 @@ pub struct Transmit<'info> { pub struct SetAccessController<'info> { #[account(mut)] pub state: AccountLoader<'info, State>, + #[account(address = state.load()?.config.owner @ ErrorCode::Unauthorized)] pub authority: Signer<'info>, pub access_controller: AccountLoader<'info, AccessController>, }