Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix:issuer DID in w3c issuance #890

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/Issuance/Issuance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const IssueCred = () => {
const [w3cSchema, setW3CSchema]= useState<boolean>(false);
const [credentialType, setCredentialType] = useState<CredentialType>();
const [schemaType, setSchemaType] = useState<SchemaTypeValue>();
const [orgDid, setOrgDid]= useState<string>('');

useEffect(() => {
fetchOrganizationDetails();
Expand All @@ -75,12 +76,14 @@ const IssueCred = () => {
setCredentialType(CredentialType.JSONLD);
setSchemaType(SchemaTypeValue.POLYGON)
await getSchemaAndUsers(true)
setOrgDid(did)
}
else if (did?.includes(DidMethod.KEY) || did?.includes(DidMethod.WEB)) {
setW3CSchema(true);
setSchemaType(SchemaTypeValue.NO_LEDGER)
setCredentialType(CredentialType.JSONLD);
await getSchemaAndUsers(true)
setOrgDid(did)
}
else if (did?.includes(DidMethod.INDY)) {
setW3CSchema(false);
Expand Down Expand Up @@ -329,7 +332,7 @@ const getSelectedUsers = async (): Promise<SelectedUsers[]> => {
w3cSchemaDetails.schemaName
],
issuer: {
"id": w3cSchemaDetails.issuerDid
"id": orgDid
},
issuanceDate: new Date().toISOString(),
//FIXME: Logic for passing default value as 0 for empty value of number dataType attributes.
Expand Down