Skip to content

Conversation

@penDerGraft
Copy link
Contributor

This PR fixes a potential data synchronization issue when updating a the PredicateRegistry for a PredicateClient contract. Since each client stores the current policyID in memory, switching the registry could create a situation where the client has a stored policy ID but the registry doesn't.

To resolve this, _setRegistry is now an atomic operation consisting of 1) updating the registry and 2) setting the current policyID on it.

@openzeppelin-code
Copy link

openzeppelin-code bot commented Dec 3, 2025

PRE-2310: transfer policyID to new registry when registry changes

Generated at commit: 55a433918117119170f24dd3f2273da7b831958f

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
0
0
3
21
25
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@penDerGraft penDerGraft merged commit 460c116 into main Dec 3, 2025
3 checks passed
@penDerGraft penDerGraft deleted the bp/audit-response-l03 branch December 3, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants