decentralized-identity / ethr-did-resolver

DID resolver for Ethereum Addresses with support for key management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] interpretIdentifier does not handle versionId

mirceanis opened this issue ยท comments

The helper method that interprets an identifier should strip away the querystring

Expected

const { address } = interpretIdentifier("did:ethr:0xd0dbe9d3698738f899ccd8ee27ff2347a7faa4dd?versionId=42")
expect(address).toEqual('0xd0dbe9d3698738f899ccd8ee27ff2347a7faa4dd')

Actual

// invalid arrayify value (argument="value", value="0xd0dbe9d3698738f899ccd8ee27ff2347a7faa4dd?versionId=42", code=INVALID_ARGUMENT, version=bytes/5.1.0)

๐ŸŽ‰ This issue has been resolved in version 4.3.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€