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

feat(IdRegistry): fail transfer, recovery, changeRecovery when paused #301

Merged

Conversation

varunsrin
Copy link
Member

@varunsrin varunsrin commented Aug 1, 2023

Motivation

If IdRegistry needs to be redeployed it is useful to have a way to freeze the old contract so that all state can be copied over to the new one. The pause function previously allowed transfers, recoveries and changing the recovery address which meant that it could not be used to guarantee that state would not change.

Change Summary

Revert transfer, changeRecoveryAddress and recover if the contract is paused.

Merge Checklist

@varunsrin varunsrin self-assigned this Aug 1, 2023
@github-actions
Copy link

github-actions bot commented Aug 1, 2023

Coverage after merging varunsrin/idr-transfer-recovery-changerec-pause-fail into main will be

98.70%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Bundler.sol100%100%100%100%
   FnameResolver.sol100%100%100%100%
   IdRegistry.sol100%100%100%100%
   KeyRegistry.sol100%100%100%100%
   StorageRegistry.sol100%100%100%100%
src/lib
   Signatures.sol100%100%100%100%
   TransferHelper.sol0%0%0%0%15, 15, 15, 25–26, 26, 26
   TrustedCaller.sol100%100%100%100%

@varunsrin varunsrin added the feat New feature request label Aug 1, 2023
Copy link
Collaborator

@horsefacts horsefacts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Close #295

@horsefacts horsefacts merged commit a8bab9e into main Aug 1, 2023
2 checks passed
@horsefacts horsefacts deleted the varunsrin/idr-transfer-recovery-changerec-pause-fail branch August 1, 2023 00:13
Hmac512 pushed a commit to Hmac512/farcaster-contracts that referenced this pull request Aug 2, 2023
Hmac512 pushed a commit to Hmac512/farcaster-contracts that referenced this pull request Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants