-
Notifications
You must be signed in to change notification settings - Fork 154
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
Orchestrator Updates #207
Orchestrator Updates #207
Conversation
@tedwu13 you can review this too |
@@ -1,53 +1,72 @@ | |||
pragma solidity 0.7.6; | |||
// SPDX-License-Identifier: GPL-3.0-or-later | |||
pragma solidity 0.8.2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.8 is really tempting but... the latest version that slither recommends is 0.7.6:
https://github.com/crytic/slither/wiki/Detector-Documentation#incorrect-versions-of-solidity
(changed just a few days ago from 0.6.11)
Are there any features from 0.8 that you need?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like keeping up with the latest version that openzeppelin contracts use is a good practice. They are up to 0.8x now
@thegostep thoughts?
contracts/Orchestrator.sol
Outdated
constructor(address policy_) public { | ||
Ownable.initialize(msg.sender); | ||
policy = UFragmentsPolicy(policy_); | ||
constructor(address policy_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to call the base constructor too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really required with newer versions.
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol#L26
But will add it for the sake of being explicit
Co-authored-by: Brandon Iles <[email protected]>
Co-authored-by: Brandon Iles <[email protected]>
10ebf06
to
542d176
Compare
Fixes issues listed in #192