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