Fix particle encoding (#974)

This commit is contained in:
Dima
2020-11-11 22:05:54 +03:00
committed by GitHub
parent ff0a5ae080
commit abf19810dc
3 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ export class FluenceConnection {
const conn = await this.node.dialProtocol(this.address, PROTOCOL_NAME) as {stream: Stream; protocol: string};
pipe(
[particleStr],
[Buffer.from(particleStr, 'utf8')],
// at first, make a message varint
encode(),
conn.stream.sink,