public static Task <string> DeployContractAsync(Nethereum.Web3.Web3 web3, L2CrossDomainMessengerDeployment l2CrossDomainMessengerDeployment)
 {
     return(web3.Eth.GetContractDeploymentHandler <L2CrossDomainMessengerDeployment>().SendRequestAsync(l2CrossDomainMessengerDeployment));
 }
        public static async Task <L2CrossDomainMessengerService> DeployContractAndGetServiceAsync(Nethereum.Web3.Web3 web3, L2CrossDomainMessengerDeployment l2CrossDomainMessengerDeployment, CancellationTokenSource cancellationTokenSource = null)
        {
            var receipt = await DeployContractAndWaitForReceiptAsync(web3, l2CrossDomainMessengerDeployment, cancellationTokenSource);

            return(new L2CrossDomainMessengerService(web3, receipt.ContractAddress));
        }
 public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Nethereum.Web3.Web3 web3, L2CrossDomainMessengerDeployment l2CrossDomainMessengerDeployment, CancellationTokenSource cancellationTokenSource = null)
 {
     return(web3.Eth.GetContractDeploymentHandler <L2CrossDomainMessengerDeployment>().SendRequestAndWaitForReceiptAsync(l2CrossDomainMessengerDeployment, cancellationTokenSource));
 }