Skip to content

Commit

Permalink
Merge pull request #577 from 0xPolygonID/develop
Browse files Browse the repository at this point in the history
sync: dev to main
  • Loading branch information
martinsaporiti authored Dec 7, 2023
2 parents 8c24cef + 9b4d231 commit f425f22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/issuer_initializer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func main() {
rhsFactory := reverse_hash.NewFactory(cfg.CredentialStatus.RHS.GetURL(), ethConn, common.HexToAddress(cfg.CredentialStatus.OnchainTreeStore.SupportedTreeStoreContract), reverse_hash.DefaultRHSTimeOut)
revocationStatusResolver := revocation_status.NewRevocationStatusResolver(cfg.CredentialStatus)
cfg.CredentialStatus.SingleIssuer = true
// this is needed to create the did with the correct auth core claim revocation status URL
cfg.CredentialStatus.DirectStatus.URL = cfg.APIUI.ServerURL
identityService := services.NewIdentity(keyStore, identityRepository, mtRepository, identityStateRepository, mtService, nil, claimsRepository, nil, nil, storage, nil, nil, nil, cfg.CredentialStatus, rhsFactory, revocationStatusResolver)

didCreationOptions := &ports.DIDCreationOptions{
Expand All @@ -148,7 +150,7 @@ func main() {
AuthBJJCredentialStatus: verifiable.CredentialStatusType(cfg.CredentialStatus.CredentialStatusType),
}

identity, err := identityService.Create(ctx, cfg.ServerUrl, didCreationOptions)
identity, err := identityService.Create(ctx, cfg.APIUI.ServerURL, didCreationOptions)
if err != nil {
log.Error(ctx, "error creating identifier", err)
return
Expand Down

0 comments on commit f425f22

Please sign in to comment.