diff --git a/contracts/Timelock.sol b/contracts/Timelock.sol index 69dcf3c1c..8295455fe 100644 --- a/contracts/Timelock.sol +++ b/contracts/Timelock.sol @@ -40,7 +40,7 @@ contract Timelock { require(delay_ <= MAXIMUM_DELAY, "Timelock::setDelay: Delay must not exceed maximum delay."); delay = delay_; - emit NewDelay(delay); + emit NewDelay(delay_); } function acceptAdmin() public { @@ -48,14 +48,14 @@ contract Timelock { admin = msg.sender; pendingAdmin = address(0); - emit NewAdmin(admin); + emit NewAdmin(msg.sender); } function setPendingAdmin(address pendingAdmin_) public { require(msg.sender == address(this), "Timelock::setPendingAdmin: Call must come from Timelock."); pendingAdmin = pendingAdmin_; - emit NewPendingAdmin(pendingAdmin); + emit NewPendingAdmin(pendingAdmin_); } function queueTransaction(address target, uint value, string memory signature, bytes memory data, uint eta) public returns (bytes32) {