-
Notifications
You must be signed in to change notification settings - Fork 355
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
Migrate Pausable to component #773
Conversation
src/security/pausable.cairo
Outdated
/// Triggers a stopped state. The contract must not already be paused. | ||
/// Emits a [Paused](Paused) event. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
src/tests/mocks/pausable_mock.cairo
Outdated
@@ -0,0 +1,22 @@ | |||
#[starknet::contract] | |||
mod PausableMock { | |||
use openzeppelin::security::pausable::Pausable as pausable_comp; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use openzeppelin::security::pausable::Pausable as pausable_comp; | |
use openzeppelin::security::pausable::Pausable as pausable_component; |
Co-authored-by: Eric Nordelo <[email protected]>
Co-authored-by: Eric Nordelo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixes #772.
PR Checklist