Skip to content

Commit

Permalink
fix: the tokenId attribute in the DDO is now clean (no DID prefix)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Oct 11, 2023
1 parent 176899a commit 6e77cb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/sdk",
"version": "2.0.0-rc16",
"version": "2.0.0-rc17",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/DDOHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function getParameter(
case 'duration':
return String(duration)
case 'tokenId':
return tokenId ? tokenId : ''
return tokenId ? tokenId.replace('did:nv:', '') : ''
}

return ''
Expand Down

0 comments on commit 6e77cb1

Please sign in to comment.