Fix spelling

This commit is contained in:
Franck Royer 2021-03-15 15:45:41 +11:00
parent cbd3151fda
commit e3a488bbf5
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 18 additions and 4 deletions

View File

@ -15,13 +15,25 @@
"execa",
"exponentiate",
"globby",
"gossipsub",
"libauth",
"libp",
"mkdir",
"multiaddr",
"multiaddrs",
"multicodecs",
"mplex",
"muxer",
"nodekey",
"prettierignore",
"protobuf",
"sandboxed",
"secio",
"staticnode",
"transpiled",
"typedoc",
"untracked",
"upgrader",
"waku"
],
"flagWords": [],
@ -30,6 +42,8 @@
"package-lock.json",
"yarn.lock",
"tsconfig.json",
"node_modules/**"
"node_modules/**",
"build",
"gen"
]
}

View File

@ -5,7 +5,7 @@ import { WakuMessage } from '../gen/proto/waku/v2/waku_pb';
import { Message } from './waku_message';
// This test is more about documenting how protobuf library works than testing it
testProp('Protobuf round trip binary serialisation', [fc.string()], (t, s) => {
testProp('Protobuf round trip binary serialization', [fc.string()], (t, s) => {
const wakuMsg = new WakuMessage();
wakuMsg.setPayload(Buffer.from(s, 'utf-8'));
@ -25,7 +25,7 @@ testProp('Protobuf round trip binary serialisation', [fc.string()], (t, s) => {
});
testProp(
'Waku message round trip binary serialisation',
'Waku message round trip binary serialization',
[fc.string()],
(t, s) => {
const msg = Message.fromUtf8String(s);

View File

@ -33,7 +33,7 @@ export class Message {
const wakuMsg = new WakuMessage();
// Only Version 0 is implemented in Waku 2.
// 0: payload SHOULD be either unencrypted or that encryption is done at a separate layer outside of Waku.
// 0: payload SHOULD be either plain or that encryption is done at a separate layer outside of Waku.
wakuMsg.setVersion(0);
// This is the content topic commonly used at this time