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