Skip to content

Commit

Permalink
Fix issue with ledger not returning nano prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
cronoh committed Aug 2, 2019
1 parent 873e4ca commit 3ce46fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NanoVault",
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",
"description": "Wallet for interacting with Nano",
"author": "Andrew Steele",
Expand Down Expand Up @@ -93,7 +93,7 @@
},
"build": {
"appId": "com.electron.nanovault",
"buildVersion": "1.2.0",
"buildVersion": "1.2.1",
"productName": "NanoVault",
"copyright": "Copyright © 2019 Andrew Steele",
"directories": {
Expand Down
5 changes: 3 additions & 2 deletions src/app/services/wallet.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,11 @@ export class WalletService {
const account: any = await this.ledgerService.getLedgerAccount(index);

const accountID = account.address;
const addressBookName = this.addressBook.getAccountName(accountID);
const nanoAccountID = accountID.replace('xrb_', 'nano_');
const addressBookName = this.addressBook.getAccountName(nanoAccountID);

const newAccount: WalletAccount = {
id: accountID,
id: nanoAccountID,
frontier: null,
secret: null,
keyPair: null,
Expand Down

0 comments on commit 3ce46fd

Please sign in to comment.