user 6 rokov pred
rodič
commit
c286a12853
3 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 1 1
      lib/index.d.ts
  2. 1 1
      lib/index.js.map
  3. 1 1
      src/index.ts

+ 1 - 1
lib/index.d.ts

@@ -27,7 +27,7 @@ export declare class BankClient {
     appendBank(bankAddress: string, bankTopic: string, itemHash: string): Promise<void>;
     retrievePrivate(peerAddr: string, topic: string): Promise<string>;
     subscribePrivate(peerAddr: string, topic: string, callback: () => void): Promise<unknown>;
-    appendPrivate(peerAddr: string, topic: string, hash: string, replaceHash?: string, deleteHash?: string): Promise<void>;
+    appendPrivate(peerAddr: string, topic: string, hash?: string, replaceHash?: string, deleteHash?: string): Promise<void>;
     getOrCreateContact(peerId: string, contactAddr: string): Promise<any>;
     getContactById(peerId: string, contactId: string): Promise<any>;
     updateContact(peerId: string, contactId: string, newProperties: any): Promise<any>;

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 1 - 1
lib/index.js.map


+ 1 - 1
src/index.ts

@@ -245,7 +245,7 @@ export class BankClient {
       });
     }
 
-    public async appendPrivate(peerAddr: string, topic: string, hash: string, replaceHash?: string, deleteHash?: string) {
+    public async appendPrivate(peerAddr: string, topic: string, hash?: string, replaceHash?: string, deleteHash?: string) {
       const nonce = await this.getNonce();
       const payload = await this.makePlaintextPayload(JSON.stringify({
         _date: new Date().toISOString(),