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

fix(N-05) improve comments for modifiers #322

Open
wants to merge 2 commits into
base: v0.1.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions contracts/src/utils/pausable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//! and [`Pausable::when_paused`],
//! which can be added to the functions of your contract.
//!
//! Note that they will not be pausable by simply including this module,
//! only once the modifiers are put in place.
//! Note that your contract will not be pausable by simply including this
//! module, only where you use these function.

use alloy_sol_types::sol;
use stylus_proc::{public, sol_storage, SolidityError};
Expand Down Expand Up @@ -102,7 +102,7 @@ impl Pausable {
Ok(())
}

/// Modifier to make a function callable only when the contract is NOT
/// Helper to make a function callable only when the contract is NOT
/// paused.
///
/// # Arguments
Expand All @@ -120,7 +120,7 @@ impl Pausable {
Ok(())
}

/// Modifier to make a function callable
/// Helper to make a function callable
/// only when the contract is paused.
///
/// # Arguments
Expand Down
Loading