Update TokenDelegator.sol

This commit is contained in:
Thrilok kumar 2021-03-28 02:12:29 +05:30 committed by GitHub
parent fa3e5b0c0f
commit a7399631d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ contract TokenDelegator is TokenDelegatorStorage, TokenEvents {
*/
function _setImplementation(address implementation_) external isMaster {
require(implementation_ != address(0), "TokenDelegator::_setImplementation: invalid implementation address");
require(block.timestamp >=changeImplementationAfter, "TokenDelegator::_setImplementation: can change implementation changeImplementationAfter time only");
require(block.timestamp >= changeImplementationAfter, "TokenDelegator::_setImplementation: can change implementation changeImplementationAfter time only");
address oldImplementation = implementation;
implementation = implementation_;