Skip to content

Commit 944ca1b

Browse files
committed
Use encrypted seed in account QR code.
Fixes ltonetwork/universal-wallet#62
1 parent eb03c98 commit 944ca1b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/app/components/account-qr/account-qr.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ import { AuthService } from '@app/core';
99
})
1010
export class AccountQrComponent implements OnInit {
1111
lto$!: Subscription;
12-
account!: { '@schema': string, address?: string, seed?: string };
12+
account!: { '@schema': string, name?: string, address?: string, seed?: string };
1313
show = false;
1414

1515
constructor(
1616
private auth: AuthService,
1717
) { }
1818

1919
ngOnInit(): void {
20-
this.lto$ = this.auth.wallet$.subscribe((ltoAccount) => (this.account = {
20+
this.lto$ = this.auth.account$.subscribe((ltoAccount) => (this.account = {
2121
'@schema': 'http://schema.lto.network/account-seed.json',
22+
name: ltoAccount?.name,
2223
address: ltoAccount?.address,
23-
seed: ltoAccount?.seed,
24+
seed: ltoAccount?.encryptedSeed,
2425
}));
2526
}
2627
}

0 commit comments

Comments
 (0)