Added address of pauser/unpauser in events (#1410)

* Added address of pauser/unpauser in events

* Added the account to the Pausable tests.

(cherry picked from commit fcab9c89f2)
This commit is contained in:
Christopher Glisch
2018-10-18 10:26:39 -04:00
committed by Leo Arias
parent c126e3e81a
commit 5f3ecd9c64
2 changed files with 6 additions and 6 deletions

View File

@ -7,8 +7,8 @@ import "../access/roles/PauserRole.sol";
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is PauserRole {
event Paused();
event Unpaused();
event Paused(address account);
event Unpaused(address account);
bool private _paused;
@ -44,7 +44,7 @@ contract Pausable is PauserRole {
*/
function pause() public onlyPauser whenNotPaused {
_paused = true;
emit Paused();
emit Paused(msg.sender);
}
/**
@ -52,6 +52,6 @@ contract Pausable is PauserRole {
*/
function unpause() public onlyPauser whenPaused {
_paused = false;
emit Unpaused();
emit Unpaused(msg.sender);
}
}