fix: registry compressible instructions#2050
Conversation
WalkthroughThe pull request refactors how authority updates are handled in the registry program. Optional signer accounts ( Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant update_compressible_config as update_compressible_config
participant ctx as Context
participant config as Config State
rect rgb(220, 230, 255)
Note over Caller,config: Before: Parameters Passed Directly
Caller->>update_compressible_config: Call with new_update_authority: Option<Pubkey>
Caller->>update_compressible_config: Call with new_withdrawal_authority: Option<Pubkey>
update_compressible_config->>config: Write param directly to update_authority
end
rect rgb(230, 255, 220)
Note over Caller,config: After: Signers in Accounts
Caller->>ctx: Include new_update_authority: Option<Signer>
Caller->>ctx: Include new_withdrawal_authority: Option<Signer>
update_compressible_config->>ctx: Read ctx.accounts.new_update_authority.as_ref()
ctx->>update_compressible_config: Return optional Signer reference
update_compressible_config->>config: Write account.key() to update_authority
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)programs/registry/src/lib.rs📄 CodeRabbit inference engine (programs/registry/CLAUDE.md)
Files:
🧠 Learnings (19)📓 Common learnings📚 Learning: 2025-10-15T03:46:26.767ZApplied to files:
📚 Learning: 2025-10-15T03:46:26.767ZApplied to files:
📚 Learning: 2025-10-16T06:33:19.426ZApplied to files:
📚 Learning: 2025-10-16T06:33:19.426ZApplied to files:
📚 Learning: 2025-10-16T06:33:19.426ZApplied to files:
📚 Learning: 2025-10-11T21:59:25.222ZApplied to files:
📚 Learning: 2025-10-11T21:59:25.222ZApplied to files:
📚 Learning: 2025-10-11T21:59:25.222ZApplied to files:
📚 Learning: 2025-10-11T21:59:25.222ZApplied to files:
📚 Learning: 2025-10-15T03:46:26.767ZApplied to files:
📚 Learning: 2025-10-15T03:46:26.767ZApplied to files:
📚 Learning: 2025-10-16T06:33:19.426ZApplied to files:
📚 Learning: 2025-10-15T03:46:26.767ZApplied to files:
📚 Learning: 2025-10-16T06:33:55.362ZApplied to files:
📚 Learning: 2025-10-16T06:33:55.362ZApplied to files:
📚 Learning: 2025-10-16T06:33:55.362ZApplied to files:
📚 Learning: 2025-10-16T06:33:55.362ZApplied to files:
📚 Learning: 2025-10-15T03:46:26.767ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (18)
🔇 Additional comments (3)
Comment |
Summary by CodeRabbit