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

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