Skip to content

Commit

Permalink
Merge pull request #3 from ArkEcosystem/feat/display-param
Browse files Browse the repository at this point in the history
feat: add display param to getAddress method
  • Loading branch information
alexbarnsley committed Jun 18, 2019
2 parents 2687e0d + 68f1dbf commit 4e265e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@arkecosystem/ledger-transport",
"version": "0.1.0",
"version": "0.1.1",
"description": "Ledger Hardware Wallet Ark Application API",
"keywords": [
"Ledger",
Expand Down
5 changes: 3 additions & 2 deletions src/Ark.js
Expand Up @@ -51,7 +51,8 @@ export default class Ark {
* ark.getAddress("44'/111'/0'/0/0").then(o => o.address)
*/
getAddress(
path: string
path: string,
display?: boolean
): Promise<{
publicKey: string,
address: string
Expand All @@ -66,7 +67,7 @@ export default class Ark {
.send(
0xe0,
0x02,
0x00,
display ? 0x01 : 0x00,
0x40,
buffer
)
Expand Down

0 comments on commit 4e265e5

Please sign in to comment.