public void DepositBounty(string funder) { Assert(State < (int)BountyState.HasEnrollments); DeposittedBounties.Add(new BountyDeposit { Name = funder, Address = Message.Sender, Amount = Message.Value }); }
public Bounty(ISmartContractState smartContractState , string name , string description) : base(smartContractState) { Owner = Message.Sender; Name = name; Description = description; DeposittedBounties.Add(new BountyDeposit { Name = "owner", Address = Message.Sender, Amount = Message.Value }); State = (int)BountyState.New; }