Skip to content

Commit

Permalink
fix: issuer match check without network ID
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Oct 3, 2024
1 parent 3a8ad6d commit be1bb3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dids/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dids",
"version": "5.0.2",
"version": "5.0.3",
"description": "Typescript library for interacting with DIDs",
"author": "Joel Thorstensson <[email protected]>",
"license": "(Apache-2.0 OR MIT)",
Expand Down
2 changes: 1 addition & 1 deletion packages/dids/src/did.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function isResolver(resolver: Resolver | ResolverRegistry): resolver is Resolver

function issuerEquals(dida: string, didb: string): boolean {
if (dida === didb) return true
if (dida.startsWith('did:pkh:eip155:1:')) {
if (dida.startsWith('did:pkh:eip155:')) {
return dida.toLowerCase() === didb.toLowerCase()
}
return false
Expand Down

0 comments on commit be1bb3f

Please sign in to comment.