Ejemplo n.º 1
0
 public async Task SignUpAsync(PlanTier plan)
 {
     await _signUpFunction.SendTransactionAndWaitForReceiptAsync(Account.Address, new HexBigInteger(900000), null, null, (byte)plan);
 }
Ejemplo n.º 2
0
        public async Task <bool> SignUpAsync(PlanTier plan, BigInteger payment)
        {
            var receipt = await _signUpFunction.SendTransactionAndWaitForReceiptAsync(Account.Address, new HexBigInteger(900000), new HexBigInteger(payment), null, (byte)plan);

            return(receipt.Status.Value == 1);
        }