mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-23 02:18:25 +00:00
Fix spelling
This commit is contained in:
parent
cbd3151fda
commit
e3a488bbf5
16
.cspell.json
16
.cspell.json
@ -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"
|
||||
]
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user