diff --git a/src/txFactory/credentialRegistryTransactionFactory.ts b/src/txFactory/credentialRegistryTransactionFactory.ts index 67a952b..ef88f58 100644 --- a/src/txFactory/credentialRegistryTransactionFactory.ts +++ b/src/txFactory/credentialRegistryTransactionFactory.ts @@ -125,7 +125,7 @@ export function updateCredentialStatus(web3, issuerCredentialHash, status) { * @param issuerCredentialHash * @param status */ -export function updateIssuerCredentialStatus(web3, issuerCredentialHash, status) { +export function updateIssuerCredential(web3, issuerCredentialHash, status) { const transaction = Object.assign({}, config.basicTransaction) const delegatedData = web3.eth.abi.encodeFunctionCall( config.contractsAbi.AlastriaCredentialRegistry.updateIssuerCredential, diff --git a/src/txFactory/transactionFactory.ts b/src/txFactory/transactionFactory.ts index dec04b4..a86c248 100644 --- a/src/txFactory/transactionFactory.ts +++ b/src/txFactory/transactionFactory.ts @@ -1,6 +1,8 @@ import { addSubjectCredential, + updateSubjectCredential, addIssuerCredential, + updateIssuerCredential, deleteSubjectCredential, getSubjectCredentialStatus, updateCredentialStatus, @@ -58,7 +60,9 @@ import { export const transactionFactory = { credentialRegistry: { addSubjectCredential: addSubjectCredential, + updateSubjectCredential: updateSubjectCredential, addIssuerCredential: addIssuerCredential, + updateIssuerCredential: updateIssuerCredential, deleteSubjectCredential: deleteSubjectCredential, getSubjectCredentialStatus: getSubjectCredentialStatus, updateCredentialStatus: updateCredentialStatus,