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

Migrate Pausable to component #773

Merged
merged 14 commits into from
Oct 12, 2023

Conversation

andrew-fleming
Copy link
Collaborator

Fixes #772.

PR Checklist

  • Tests
  • Tried the feature on a public network
  • Documentation

src/security/pausable.cairo Outdated Show resolved Hide resolved
src/security/pausable.cairo Outdated Show resolved Hide resolved
src/security/pausable.cairo Outdated Show resolved Hide resolved
src/security/pausable.cairo Outdated Show resolved Hide resolved
Comment on lines 78 to 79
/// Triggers a stopped state. The contract must not already be paused.
/// Emits a [Paused](Paused) event.
Copy link
Member

Choose a reason for hiding this comment

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

Is this syntax for events in comments documented?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, good catch. Will update

@@ -0,0 +1,22 @@
#[starknet::contract]
mod PausableMock {
use openzeppelin::security::pausable::Pausable as pausable_comp;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
use openzeppelin::security::pausable::Pausable as pausable_comp;
use openzeppelin::security::pausable::Pausable as pausable_component;

src/tests/mocks/upgrades_v1.cairo Outdated Show resolved Hide resolved
src/tests/mocks/upgrades_v2.cairo Outdated Show resolved Hide resolved
Copy link
Member

@ericnordelo ericnordelo left a comment

Choose a reason for hiding this comment

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

LGTM!

@andrew-fleming andrew-fleming merged commit d55661a into OpenZeppelin:main Oct 12, 2023
1 check passed
@andrew-fleming andrew-fleming deleted the pausable-component branch October 12, 2023 22:31
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.

Migrate Pausable to component
2 participants