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

Beneficiary Support For Redeem and UnstaKe #101

Merged
merged 7 commits into from
Feb 2, 2018

Conversation

abhayks1
Copy link
Contributor

@abhayks1 abhayks1 commented Feb 1, 2018

No description provided.

Copy link
Contributor

@benjaminbollen benjaminbollen left a comment

Choose a reason for hiding this comment

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

thx; if you can make these small changes then we're set for Saas

@@ -81,14 +81,14 @@ contract OpenSTUtility is Hasher, OpsManaged {
address _beneficiary, uint256 _amountUT);

event RedemptionIntentDeclared(bytes32 indexed _uuid, bytes32 indexed _redemptionIntentHash,
address _token, address _redeemer, uint256 _nonce, uint256 _amount, uint256 _unlockHeight,
address _token, address _redeemer, address _beneficiary, uint256 _nonce, uint256 _amount, uint256 _unlockHeight,
Copy link
Contributor

Choose a reason for hiding this comment

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

to keep in line with the function signatures for redeem; can we make the order _nonce, _beneficiary?

amountUT: _amountBT,
unlockHeight: unlockHeight
});

RedemptionIntentDeclared(_uuid, redemptionIntentHash, address(token),
msg.sender, _nonce, _amountBT, unlockHeight, chainIdValue);
msg.sender, _beneficiary, _nonce, _amountBT, unlockHeight, chainIdValue);
Copy link
Contributor

Choose a reason for hiding this comment

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

then the order here is aligned with the function signature _nonce, _beneficiary

amountUT: amountSTP,
unlockHeight: unlockHeight
});

RedemptionIntentDeclared(uuidSTPrime, redemptionIntentHash, simpleTokenPrime,
msg.sender, _nonce, amountSTP, unlockHeight, chainIdValue);
msg.sender, _beneficiary, _nonce, amountSTP, unlockHeight, chainIdValue);
Copy link
Contributor

Choose a reason for hiding this comment

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

again order would change here

@@ -111,6 +111,7 @@ contract('OpenSTUtility', function(accounts) {
const requester = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
const token = "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";
const redeemer = accounts[0];
const redeemBeneficiary = accounts[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

  • indentation
  • use a new accounts[1]

@abhayks1
Copy link
Contributor Author

abhayks1 commented Feb 2, 2018

@benjaminbollen Requested changes done
All test cases worked fine

Copy link
Contributor

@benjaminbollen benjaminbollen left a comment

Choose a reason for hiding this comment

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

LGTM

@benjaminbollen benjaminbollen merged commit 8adbf90 into develop Feb 2, 2018
@jasonklein jasonklein modified the milestones: v0.9.3, v0.9.2 Mar 27, 2018
@abhayks1 abhayks1 deleted the abhay/benefeciary branch May 21, 2018 08:01
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.

3 participants