@@ -262,6 +262,9 @@ class BankClient {
}
getContactBook(peerId) {
return __awaiter(this, void 0, void 0, function* () {
+ if (peerId == null) {
+ throw new Error('Missing peerId');
+ }
return new contact_book_1.ContactBook(yield this.getAllContacts(peerId));
});
@@ -253,6 +253,9 @@ export class BankClient {
public async getContactBook(peerId: string): Promise<ContactBook> {
return new ContactBook(await this.getAllContacts(peerId));