From a9c5915cdf970e3f152719413597b2793f81e7b8 Mon Sep 17 00:00:00 2001 From: MollyHe5 Date: Sat, 12 Nov 2022 23:56:22 -0500 Subject: [PATCH] change SLOAD to MLOAD --- contracts/Timelock.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {