Skip to content
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

Merged
merged 4 commits into from
Jun 5, 2019
Merged

Bump Colony version to 2 #636

merged 4 commits into from
Jun 5, 2019

Conversation

area
Copy link
Member

@area area commented Jun 5, 2019

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

Also allow us to initialise with any version. This is required because
we wish to align versions between Goerli and Mainnet
@area area self-assigned this Jun 5, 2019
colonyVersionResolver[1] = _resolver;
currentColonyVersion = 1;
colonyVersionResolver[_version] = _resolver;
currentColonyVersion = _version;
Copy link
Contributor

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

/// @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
Copy link
Contributor

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
Copy link
Contributor

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 👏

@area area merged commit ccda3dd into develop Jun 5, 2019
@area area deleted the maint/bump-version branch June 5, 2019 12:44
@kronosapiens kronosapiens added this to the Sprint 27 milestone Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants