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

Admin initiate and revoke protocol transfer #55

Merged
merged 2 commits into from
Dec 12, 2017

Conversation

benjaminbollen
Copy link
Contributor

@benjaminbollen benjaminbollen commented Dec 12, 2017

Enable a very simple form of protocol transfer to begin with on 0.9.1 OpenSTValue and OpenSTUtility to transfer protocol. Addresses #36

* Administrative functions
*/
function initiateProtocolTransfer(
// including ProtocolVersioned interface explicitly adds to the size
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll need to change this comment

Copy link
Contributor

@jasonklein jasonklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing explicit returns.

onlyAdmin
returns (bool)
{
_token.initiateProtocolTransfer(_proposedProtocol);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to explicitly return, otherwise will always return false. This comment applies to the identically-named function in OpenSTValue.sol as well.

onlyAdmin
returns (bool)
{
_token.revokeProtocolTransfer();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to explicitly return, otherwise will always return false. This comment applies to the matching function in OpenSTValue.sol as well.

Copy link
Contributor

@jasonklein jasonklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@jasonklein jasonklein merged commit d20dbf9 into develop Dec 12, 2017
@benjaminbollen benjaminbollen deleted the benjaminbollen/gh36/protocolversioning branch December 12, 2017 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants