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: add ERC1155 Pausable Extension #432

Merged
merged 18 commits into from
Dec 10, 2024
Merged

Conversation

bidzyyys
Copy link
Collaborator

@bidzyyys bidzyyys commented Dec 3, 2024

Resolves #349

PR Checklist

  • Tests
  • Documentation
  • Changelog

@bidzyyys bidzyyys linked an issue Dec 3, 2024 that may be closed by this pull request
1 task
Copy link

netlify bot commented Dec 3, 2024

Deploy Preview for contracts-stylus ready!

Name Link
🔨 Latest commit 93ca2d6
🔍 Latest deploy log https://app.netlify.com/sites/contracts-stylus/deploys/6757fbb24d9791000863c989
😎 Deploy Preview https://deploy-preview-432--contracts-stylus.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bidzyyys bidzyyys changed the title Feature/erc1155 pausable feat: add ERC1155 Pausable Extension Dec 3, 2024
@bidzyyys bidzyyys self-assigned this Dec 3, 2024
@bidzyyys bidzyyys marked this pull request as ready for review December 3, 2024 17:06
@bidzyyys bidzyyys requested a review from ggonzalez94 December 3, 2024 17:06
Copy link
Collaborator

@0xNeshi 0xNeshi left a comment

Choose a reason for hiding this comment

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

Overall looks good, a couple of smaller comments

docs/modules/ROOT/pages/erc1155-pausable.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/erc1155-pausable.adoc Outdated Show resolved Hide resolved
examples/erc1155/src/lib.rs Outdated Show resolved Hide resolved
examples/erc1155/src/lib.rs Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/erc1155-pausable.adoc Show resolved Hide resolved
examples/erc1155/tests/erc1155.rs Outdated Show resolved Hide resolved
examples/erc1155/tests/erc1155.rs Outdated Show resolved Hide resolved
examples/erc1155/tests/erc1155.rs Outdated Show resolved Hide resolved
examples/erc1155/tests/erc1155.rs Show resolved Hide resolved
examples/erc1155/tests/erc1155.rs Show resolved Hide resolved
@bidzyyys bidzyyys requested a review from 0xNeshi December 5, 2024 13:15
Copy link
Collaborator Author

@bidzyyys bidzyyys left a comment

Choose a reason for hiding this comment

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

Solved all comments @0xNeshi

examples/erc1155/tests/erc1155.rs Outdated Show resolved Hide resolved
examples/erc1155/tests/erc1155.rs Show resolved Hide resolved
Copy link
Member

@qalisander qalisander left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -1392,6 +1408,24 @@ async fn unpauses(alice: Account) -> eyre::Result<()> {
Ok(())
}

#[e2e::test]
async fn unpause_reverts_in_unpaused_state(alice: Account) -> eyre::Result<()> {
Copy link
Member

Choose a reason for hiding this comment

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

Are we switching to <func_name>_reverts_<description> convention already?

Copy link
Member

Choose a reason for hiding this comment

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

Make sense to change it everywhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, let's start adding tests that follow this naming convention. We may rename the rest in the future.

Copy link
Collaborator

@0xNeshi 0xNeshi left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Collaborator

@0xNeshi 0xNeshi 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 Author

@bidzyyys bidzyyys 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
Member

@qalisander qalisander left a comment

Choose a reason for hiding this comment

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

Looks good!

@bidzyyys bidzyyys merged commit a27d0c5 into main Dec 10, 2024
24 checks passed
@bidzyyys bidzyyys deleted the feature/erc1155-pausable branch December 10, 2024 09:19
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.

[Feature]: ERC1155 Pausable Extension
3 participants