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

Update ERC-6538 contract and tests #5

Merged
merged 38 commits into from
Feb 6, 2024
Merged

Conversation

garyghayrat
Copy link
Member

No description provided.

src/ERC6538Registry.sol Fixed Show fixed Hide fixed
@garyghayrat garyghayrat requested a review from apbendi December 18, 2023 18:10
@garyghayrat garyghayrat changed the title Update ERC-6538 contract and tests to use address for the registrant Update ERC-6538 contract and tests Dec 18, 2023
src/ERC6538Registry.sol Fixed Show fixed Hide fixed
@mds1
Copy link
Collaborator

mds1 commented Dec 19, 2023

@garyghayrat Can you request me as a reviewer so I remember to review this? I think with this comment you now should be able to

@garyghayrat
Copy link
Member Author

@garyghayrat Can you request me as a reviewer so I remember to review this? I think with this comment you now should be able to

Hmm, still don't see you in the reviewers list

@garyghayrat garyghayrat assigned mds1 and garyghayrat and unassigned mds1 Dec 19, 2023
script/Deploy.s.sol Outdated Show resolved Hide resolved
script/Deploy.s.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Fixed Show fixed Hide fixed
src/ERC5564Announcer.sol Fixed Show fixed Hide fixed
@garyghayrat garyghayrat requested a review from mds1 December 21, 2023 16:34
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
@garyghayrat garyghayrat requested a review from mds1 January 18, 2024 17:55
Copy link
Member

@apbendi apbendi left a comment

Choose a reason for hiding this comment

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

Hey @garyghayrat, overall this is looking way better! I did leave some questions, the most important of which is related to the type hash. Thanks!

src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
@garyghayrat garyghayrat requested a review from apbendi January 25, 2024 19:14
Copy link
Member

@apbendi apbendi left a comment

Choose a reason for hiding this comment

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

Thanks for your patience @garyghayrat. More comments. But we are getting there.

src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/ERC6538Registry.sol Outdated Show resolved Hide resolved
src/interfaces/IERC6538Registry.sol Show resolved Hide resolved
src/ERC5564Announcer.sol Outdated Show resolved Hide resolved
test/ERC6538Registry.t.sol Outdated Show resolved Hide resolved
test/ERC6538Registry.t.sol Outdated Show resolved Hide resolved
test/ERC6538Registry.t.sol Show resolved Hide resolved
Copy link
Member

@apbendi apbendi left a comment

Choose a reason for hiding this comment

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

More comments @garyghayrat, I promise we're getting close and I'm not trying to drive you crazy 🙈

test/ERC6538Registry.t.sol Outdated Show resolved Hide resolved
test/ERC6538Registry.t.sol Outdated Show resolved Hide resolved
test/ERC6538Registry.t.sol Outdated Show resolved Hide resolved
test/ERC6538Registry.t.sol Outdated Show resolved Hide resolved
@garyghayrat garyghayrat requested a review from apbendi January 31, 2024 17:52
* Test internal variable initialization in registry constructor tests
* Improvements to domain separator test
* Improvements to the RegisteryKeys tests
* Naming improvements to registerKeysOnBehalf tests
* Update test imports and remove duplicated import
* Refactor signature test helpers for test simplicity
* Simplify mock contract for ERC1271 signatures
* Remove redundant test and add missing ones for register on behalf
* Minor cleanup to increment nonce test
* Update the EIP712Domain separator to match the spec
* Simplify Announcer test names
* Use `vm.expectRevert("")` instead of `vm.expectRevert()`
@apbendi apbendi force-pushed the erc-6538-use-address-only branch from 471d3be to df75e3e Compare February 5, 2024 18:55
Copy link

github-actions bot commented Feb 5, 2024

Coverage after merging erc-6538-use-address-only into main will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   ERC5564Announcer.sol100%100%100%100%
   ERC6538Registry.sol96.55%75%100%100%90

Copy link
Member

@apbendi apbendi left a comment

Choose a reason for hiding this comment

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

Let's gooooooo 🚀

Copy link
Collaborator

@nerolation nerolation left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@mds1 mds1 left a comment

Choose a reason for hiding this comment

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

Looks great!

@garyghayrat garyghayrat merged commit 8131727 into main Feb 6, 2024
6 checks passed
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