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

[CodeArena] - [L-01/N-18/L-20] : Remove 1:1 linkage between factory & reserve #58

Merged
merged 1 commit into from
Dec 13, 2021

Conversation

maximebrugel
Copy link
Contributor

@maximebrugel maximebrugel commented Dec 9, 2021

Issues =>

The idea here is to introduce an abstract contract OwnableFactoryHandler to remove duplicated code towards supportedFactories (and associated functions/modifier). And NestedReserve is now an OwnableFactoryHandler.

@maximebrugel maximebrugel added the To review Let people know this PR is ready for a review label Dec 9, 2021
Copy link
Contributor

@adrien-supizet adrien-supizet left a comment

Choose a reason for hiding this comment

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

👏 Well done!

@@ -129,7 +127,7 @@ describe("NestedAsset", () => {

it("should revert if the caller is not the factory", async () => {
await expect(asset.connect(bob).backfillTokenURI(1, bob.address, "ipfs://newTokenURI")).to.be.revertedWith(
"NA: FORBIDDEN_NOT_FACTORY",
"FH: FORBIDDEN",
Copy link
Contributor

Choose a reason for hiding this comment

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

💅 Typo here in contract name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@adrien-supizet adrien-supizet added Fix and merge Minor changes required and removed To review Let people know this PR is ready for a review labels Dec 13, 2021
@maximebrugel maximebrugel merged commit 02334f2 into codearena Dec 13, 2021
@maximebrugel maximebrugel deleted the codearena-32 branch December 13, 2021 16:57
@maximebrugel maximebrugel changed the title [CodeArena] - [L-01/N-18] : Remove 1:1 linkage between factory & reserve [CodeArena] - [L-01/N-18/L-20] : Remove 1:1 linkage between factory & reserve Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix and merge Minor changes required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants