public static Task <string> DeployContractAsync(Nethereum.Web3.Web3 web3, ENSRegistryWithFallbackDeployment eNSRegistryWithFallbackDeployment) { return(web3.Eth.GetContractDeploymentHandler <ENSRegistryWithFallbackDeployment>().SendRequestAsync(eNSRegistryWithFallbackDeployment)); }
public static async Task <ENSRegistryWithFallbackService> DeployContractAndGetServiceAsync(Nethereum.Web3.Web3 web3, ENSRegistryWithFallbackDeployment eNSRegistryWithFallbackDeployment, CancellationTokenSource cancellationTokenSource = null) { var receipt = await DeployContractAndWaitForReceiptAsync(web3, eNSRegistryWithFallbackDeployment, cancellationTokenSource); return(new ENSRegistryWithFallbackService(web3, receipt.ContractAddress)); }
public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Nethereum.Web3.Web3 web3, ENSRegistryWithFallbackDeployment eNSRegistryWithFallbackDeployment, CancellationTokenSource cancellationTokenSource = null) { return(web3.Eth.GetContractDeploymentHandler <ENSRegistryWithFallbackDeployment>().SendRequestAndWaitForReceiptAsync(eNSRegistryWithFallbackDeployment, cancellationTokenSource)); }