Skip to content

Commit

Permalink
optionally return signature if passing verifying contract params
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroga committed Jul 19, 2024
1 parent 9735733 commit 156795f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/services/did.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,7 @@ func (d *DidDocumentServices) GetDidDocument(ctx context.Context, did string, op

walletAddress, err := resolver.WalletAddress()

if err == nil {
if opts.VerifyingContractChainId == nil {
return nil, errors.New("error verifying contract chainId is not set")
}
if opts.VerifyingContractAddress == "" {
return nil, errors.New("error verifying contract address is not set")
}
if err == nil && opts.VerifyingContractChainId != nil && opts.VerifyingContractAddress != "" {
verifyingContract := VerifyingContract{
ChainId: *opts.VerifyingContractChainId,
Address: opts.VerifyingContractAddress,
Expand Down

0 comments on commit 156795f

Please sign in to comment.