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)); }
public Task <string> SendRequestAsync(TContractDeploymentMessage contractDeploymentMessage = null, CancellationToken cancellationToken = default(CancellationToken)) { return(_transactionSenderHandler.SendTransactionAsync(contractDeploymentMessage, cancellationToken)); }