-
Notifications
You must be signed in to change notification settings - Fork 31
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
Conversation
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.
thx; if you can make these small changes then we're set for Saas
contracts/OpenSTUtility.sol
Outdated
@@ -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, |
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.
to keep in line with the function signatures for redeem; can we make the order _nonce
, _beneficiary
?
contracts/OpenSTUtility.sol
Outdated
amountUT: _amountBT, | ||
unlockHeight: unlockHeight | ||
}); | ||
|
||
RedemptionIntentDeclared(_uuid, redemptionIntentHash, address(token), | ||
msg.sender, _nonce, _amountBT, unlockHeight, chainIdValue); | ||
msg.sender, _beneficiary, _nonce, _amountBT, unlockHeight, chainIdValue); |
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.
then the order here is aligned with the function signature _nonce, _beneficiary
contracts/OpenSTUtility.sol
Outdated
amountUT: amountSTP, | ||
unlockHeight: unlockHeight | ||
}); | ||
|
||
RedemptionIntentDeclared(uuidSTPrime, redemptionIntentHash, simpleTokenPrime, | ||
msg.sender, _nonce, amountSTP, unlockHeight, chainIdValue); | ||
msg.sender, _beneficiary, _nonce, amountSTP, unlockHeight, chainIdValue); |
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.
again order would change here
test/OpenSTUtility.js
Outdated
@@ -111,6 +111,7 @@ contract('OpenSTUtility', function(accounts) { | |||
const requester = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | |||
const token = "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"; | |||
const redeemer = accounts[0]; | |||
const redeemBeneficiary = accounts[0]; |
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.
- indentation
- use a new
accounts[1]
@benjaminbollen Requested changes done |
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.
LGTM
No description provided.