Skip to content

Commit

Permalink
Merge pull request #664 from 0xPolygonID/fix_revocation_status_url
Browse files Browse the repository at this point in the history
fix: revocation status url
  • Loading branch information
martinsaporiti authored May 22, 2024
2 parents 4b2c470 + f876fdc commit d85e6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/issuer_initializer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ func main() {
WaitBlockCycleTime: cfg.Ethereum.WaitBlockCycleTime,
}, keyStore)

// this is needed to create the did with the correct auth core claim revocation status URL
cfg.CredentialStatus.DirectStatus.URL = cfg.APIUI.ServerURL
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 Down

0 comments on commit d85e6e8

Please sign in to comment.