Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: OZ-L04 adherence to CEI in unsubscribe #303

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

saucepoint
Copy link
Collaborator

Related Issue

unsubscribe() does not follow check-effect-interaction pattern

  • This would lead to obscure cases where integrators (called by subscribers) may mistaken that a tokenId has a subscriber

Description of changes

delete subscriber[tokenId] before calling subscriber.notifyUnsubscribe()

@saucepoint saucepoint requested a review from hensha256 August 26, 2024 19:54
@hensha256 hensha256 merged commit 870b46c into main Aug 27, 2024
3 checks passed
@hensha256 hensha256 deleted the oz-L04-unsubscribe-CEI branch August 27, 2024 12:03
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.

2 participants