Skip to content

Commit

Permalink
Merge pull request #23 from sembrestels/permission-parameters
Browse files Browse the repository at this point in the history
Add some helpful permission parameters to MarketplaceController
  • Loading branch information
sembrestels committed Oct 15, 2020
2 parents c25f523 + 29d25c0 commit b82570b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion apps/marketplace-controller/arapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@
{
"name": "Contribute to presale",
"id": "CONTRIBUTE_ROLE",
"params": []
"params": [
"Contributor",
"Amount"
]
},
{
"name": "Make buy orders",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ contract MarketplaceController is EtherTokenConstant, IsContract, ApproveAndCall
* @notice Contribute to the presale up to `@tokenAmount(self.contributionToken(): address, _value)`
* @param _value The amount of contribution token to be spent
*/
function contribute(uint256 _value) external payable authP(CONTRIBUTE_ROLE, arr(msg.sender)) {
function contribute(uint256 _value) external payable authP(CONTRIBUTE_ROLE, arr(msg.sender, _value)) {
presale.contribute.value(msg.value)(msg.sender, _value);
}

Expand Down

0 comments on commit b82570b

Please sign in to comment.