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

Check pause flow #285

Merged
merged 3 commits into from
Sep 28, 2018
Merged

Check pause flow #285

merged 3 commits into from
Sep 28, 2018

Conversation

satyamakgec
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our Submission guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

(Bug fix, feature, docs update, ...)

What is the current behavior?

(You can also link to an open issue here)
Merge only when the upgrade-mr PR get merge as I take that upgrade-mr as a base branch

What is the new behavior?

(Define and describe any new functionality. Clarify if this is a feature change)

Does this PR introduce a breaking change?

(What changes might users need to make in their application due to this PR?)

Any Other information:

@pabloruiz55
Copy link
Contributor

PR looks good. Only wondering why all those commits are showing up in the PR. @satyamakgec

@@ -116,10 +116,15 @@ contract SecurityTokenRegistry is ISecurityTokenRegistry, EternalStorage {
* @notice Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you rename to something like whenNotPausedOrOwner - whenNotPaused might be a bit confusing as it's a standard function with a different normal implementation.

@@ -296,7 +300,7 @@ contract ModuleRegistry is IModuleRegistry, EternalStorage {
/**
* @notice Called by the owner to pause, triggers stopped state
*/
function pause() external whenNotPaused onlyOwner {
function pause() external onlyOwner {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think pause should revert if the contract is already paused. It makes the logs easier to interpret. Can we have whenNotPaused and whenNotPausedOrOwner and use whenNotPaused here maybe?

@satyamakgec
Copy link
Contributor Author

@pabloruiz55 the cause of showing all other commits was upgrade-mr branch as I create this branch from the upgrade-mr branch. not it doesn't show those commits as we merge the upgrade-mr branch.

@adamdossa adamdossa merged commit 4570480 into development-1.5.0 Sep 28, 2018
@adamdossa adamdossa deleted the check-pause-flow branch September 28, 2018 10:47
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.

None yet

4 participants