-
Notifications
You must be signed in to change notification settings - Fork 112
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
Bump Colony version to 2 #636
Conversation
Also allow us to initialise with any version. This is required because we wish to align versions between Goerli and Mainnet
colonyVersionResolver[1] = _resolver; | ||
currentColonyVersion = 1; | ||
colonyVersionResolver[_version] = _resolver; | ||
currentColonyVersion = _version; |
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.
Maybe just require version > 0
contracts/IColonyNetwork.sol
Outdated
/// @param _resolver Address of the resolver for Colony contract version 1 | ||
function initialise(address _resolver) public; | ||
/// @param _resolver Address of the resolver for Colony contract | ||
/// @param _resolver Version of the Colony contract the resolver represents |
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.
_resolver -> _version param name in natspec
@@ -428,7 +428,8 @@ Initialises the colony network by setting the first Colony version resolver to ` | |||
|
|||
|Name|Type|Description| | |||
|---|---|---| | |||
|_resolver|address|Address of the resolver for Colony contract version 1 | |||
|_resolver|address|Address of the resolver for Colony contract | |||
|_version|uint256|Version of the Colony contract the resolver represents |
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.
It's just lovely how the docs auto-update. Again, well done @ryanchristo 👏
Bumps the
version()
a colony will report with the latest resolver to 2. This was already done on Goerli, just not included in the codebase. This PR also allows us to initialise ColonyNetwork with any version as the latest version. This is required because we wish to align versions between Goerli and Mainnet