-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Incorporate upgrade deployment changes from PR #11 Coauthored by @doublo54 #15
Conversation
- I was frustrated by the lack of flexibility wth hardhat upgrades I provided additional functions in DeployManager to deploy the separate pieces as needed. We also have finer grain control over the contracts. - proxyAdmin: This is optional now in case we want to reuse a contract - transparentProxy: This can be deployed standalone if you want to reuse an implementation - deployUpgradeableContract which composes them all together
/// ----------------------------------------------------------------------- | ||
|
||
function initialize(uint256 _unlockTime, address payable _owner) public initializer { | ||
require(block.timestamp < _unlockTime, "Unlock time should be in the future"); |
Check notice
Code scanning / Semgrep
Semgrep Finding: rules.solidity.performance.use-short-revert-string
/// ----------------------------------------------------------------------- | ||
|
||
function initialize(uint256 _unlockTime, address payable _owner) public initializer { | ||
require(block.timestamp < _unlockTime, "Unlock time should be in the future"); |
Check notice
Code scanning / Semgrep
Semgrep Finding: rules.solidity.performance.use-custom-error-not-require
// Uncomment this line to print a log in your terminal | ||
// console.log("Unlock time is %o and block timestamp is %o", unlockTime, block.timestamp); | ||
|
||
require(block.timestamp >= unlockTime, "You can't withdraw yet"); |
Check notice
Code scanning / Semgrep
Semgrep Finding: rules.solidity.performance.use-custom-error-not-require
// console.log("Unlock time is %o and block timestamp is %o", unlockTime, block.timestamp); | ||
|
||
require(block.timestamp >= unlockTime, "You can't withdraw yet"); | ||
require(msg.sender == owner, "You aren't the owner"); |
Check notice
Code scanning / Semgrep
Semgrep Finding: rules.solidity.performance.use-custom-error-not-require
I provided additional functions in DeployManager to deploy the separate pieces as needed. We also have finer grain control over the contracts.