Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

chore: update dapi client to 0.16.0-dev.3 #196

Merged
merged 8 commits into from
Oct 16, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"homepage": "https://github.com/dashevo/wallet-lib#readme",
"dependencies": {
"@dashevo/dapi-client": "~0.16.0-dev.1",
"@dashevo/dapi-client": "~0.16.0-dev.2",
"@dashevo/dashcore-lib": "~0.18.12",
"@dashevo/grpc-common": "~0.3.0",
"cbor": "^5.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ const logger = require('../../../logger');
module.exports = async function getIdentityIdByFirstPublicKey(publicKeyHash) {
logger.silly('DAPIClientTransport.getIdentityIdByFirstPublicKey');

return this.client.platform.getIdentityIdByFirstPublicKey(publicKeyHash);
const [identityId] = await this.client.platform.getIdentityIdsByPublicKeyHashes(
[publicKeyHash],
);

return identityId;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

identityId.toString()

};