Compare commits

..

No commits in common. "ee3e71351c7aa61b2319450acfaedbe86d2eb369" and "bbbe8133609bdb60dcfe13866894fdddb98b9a29" have entirely different histories.

2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -76,7 +76,7 @@ export class SwarmClient extends Client {
}
async join(topic) {
if (typeof topic === "string") {
topic = blake2b(topic, { dkLen: 32 });
topic = blake2b(topic);
}
this._topics.add(topic);
this.callModule("join", { id: this.id, topic });

View File

@ -106,7 +106,7 @@ export class SwarmClient extends Client {
public async join(topic: Buffer | Uint8Array | string): Promise<void> {
if (typeof topic === "string") {
topic = blake2b(topic, { dkLen: 32 });
topic = blake2b(topic);
}
this._topics.add(topic);