public async Task <TransactionReceipt> SendTransactionAsync(TContractDeploymentMessage deploymentMessage    = null,
                                                                    CancellationTokenSource cancellationTokenSource = null)
        {
            if (deploymentMessage == null)
            {
                deploymentMessage = new TContractDeploymentMessage();
            }
            var transactionHash = await _deploymentTransactionHandler.SendTransactionAsync(deploymentMessage)
                                  .ConfigureAwait(false);

            return(await TransactionManager.TransactionReceiptService
                   .PollForReceiptAsync(transactionHash, cancellationTokenSource).ConfigureAwait(false));
        }
 public Task <string> SendRequestAsync(TContractDeploymentMessage contractDeploymentMessage = null)
 {
     return(_transactionSenderHandler.SendTransactionAsync(contractDeploymentMessage));
 }
示例#3
0
 public Task <string> SendRequestAsync(TContractDeploymentMessage contractDeploymentMessage = null,
                                       CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_transactionSenderHandler.SendTransactionAsync(contractDeploymentMessage,
                                                           cancellationToken));
 }