Skip to content

Commit

Permalink
export functions updateSubjectCredential and updateIssuerCredential
Browse files Browse the repository at this point in the history
  • Loading branch information
rober12 committed Nov 10, 2024
1 parent 5067675 commit a8e6928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/txFactory/credentialRegistryTransactionFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions src/txFactory/transactionFactory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {
addSubjectCredential,
updateSubjectCredential,
addIssuerCredential,
updateIssuerCredential,
deleteSubjectCredential,
getSubjectCredentialStatus,
updateCredentialStatus,
Expand Down Expand Up @@ -58,7 +60,9 @@ import {
export const transactionFactory = {
credentialRegistry: {
addSubjectCredential: addSubjectCredential,
updateSubjectCredential: updateSubjectCredential,
addIssuerCredential: addIssuerCredential,
updateIssuerCredential: updateIssuerCredential,
deleteSubjectCredential: deleteSubjectCredential,
getSubjectCredentialStatus: getSubjectCredentialStatus,
updateCredentialStatus: updateCredentialStatus,
Expand Down

0 comments on commit a8e6928

Please sign in to comment.