예제 #1
0
 public void DepositBounty(string funder)
 {
     Assert(State < (int)BountyState.HasEnrollments);
     DeposittedBounties.Add(new BountyDeposit
     {
         Name    = funder,
         Address = Message.Sender,
         Amount  = Message.Value
     });
 }
예제 #2
0
 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;
 }