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