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