Added a contact string for the issuer

This commit is contained in:
Gonçalo Sá 2017-05-02 08:34:54 +01:00
parent a4b7b94d97
commit 2f191741bd
2 changed files with 6 additions and 0 deletions

View File

@ -50,12 +50,14 @@ contract CodeBugBounty is StandardBounty {
function CodeBugBounty(
uint _deadline,
string _data,
string _contactInfo,
uint _fulfillmentAmount,
Bountied _bountiedContract
)
StandardBounty(
_deadline,
_data,
_contactInfo,
_fulfillmentAmount,
false
)

View File

@ -21,6 +21,7 @@ contract StandardBounty {
*/
address public issuer; //the creator of the bounty
string public issuerContact; //string of a contact method used to reach the issuer in case it is needed
BountyStages public bountyStage;
@ -149,11 +150,13 @@ contract StandardBounty {
/// @dev StandardBounty(): instantiates a new draft bounty
/// @param _deadline the unix timestamp after which fulfillments will no longer be accepted
/// @param _contactInfo a string with contact info of the issuer, for them to be contacted if needed
/// @param _data the requirements of the bounty
/// @param _fulfillmentAmount the amount of wei to be paid out for each successful fulfillment
/// @param _fulfillmentApproval whether or not a fulfillment must be approved for one to claim the reward
function StandardBounty(
uint _deadline,
string _contactInfo,
string _data,
uint _fulfillmentAmount,
bool _fulfillmentApproval
@ -161,6 +164,7 @@ contract StandardBounty {
amountIsNotZero(_fulfillmentAmount)
{
issuer = msg.sender;
issuerContact = _contactInfo;
bountyStage = BountyStages.Draft;
deadline = _deadline;
data = _data;