public async Task TestAddNotOwnedCertificateAsync() { string transactionHash = null; try { transactionHash = await _attribute.AddCertificateAsync(AddressFrom, _certificateNotOwnedByAttribute.GetAddress(), new HexBigInteger(3905820)); } catch (RpcResponseException e) { } Assert.Null(transactionHash); }
public async Task <Certificate> AddCertificateAsync(Attribute attribute, Certificate cert) { //If the certificate is not deployed, deploy it if (cert.Address == null) { cert = await _certificateFacade.DeployAsync(cert); } //Add the certificate to the attribute AttributeService ethAttribute = new AttributeService(Web3, AccountService.PrivateKey, attribute.Address); await ethAttribute.AddCertificateAsync(cert.Address); return(cert); }