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