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