smoldot 2.0.34 → 2.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/internals/bytecode/wasm0.js +1 -1
- package/dist/cjs/internals/bytecode/wasm1.js +1 -1
- package/dist/cjs/internals/bytecode/wasm2.js +1 -1
- package/dist/cjs/internals/local-instance.js +1 -1
- package/dist/cjs/public-types.d.ts +1 -1
- package/dist/mjs/internals/bytecode/wasm0.js +1 -1
- package/dist/mjs/internals/bytecode/wasm1.js +1 -1
- package/dist/mjs/internals/bytecode/wasm2.js +1 -1
- package/dist/mjs/internals/local-instance.js +1 -1
- package/dist/mjs/public-types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -391,7 +391,7 @@ function startLocalInstance(config, wasmModule, eventCallback) {
|
|
|
391
391
|
console.assert(disableJsonRpc || jsonRpcMaxPendingRequests != 0, "invalid jsonRpcMaxPendingRequests value passed to local-instance::addChain");
|
|
392
392
|
// `add_chain` unconditionally allocates a chain id. If an error occurs, however, this chain
|
|
393
393
|
// id will refer to an *erroneous* chain. `chain_is_ok` is used below to determine whether it
|
|
394
|
-
// has
|
|
394
|
+
// has succeeded or not.
|
|
395
395
|
state.bufferIndices[0] = new TextEncoder().encode(chainSpec);
|
|
396
396
|
state.bufferIndices[1] = new TextEncoder().encode(databaseContent);
|
|
397
397
|
const potentialRelayChainsEncoded = new Uint8Array(potentialRelayChains.length * 4);
|
|
@@ -351,7 +351,7 @@ export interface AddChainOptions {
|
|
|
351
351
|
* inspecting the chain specification of that parachain (i.e. the `chainSpec` field).
|
|
352
352
|
*
|
|
353
353
|
* This poses a problem in situations where the same client is shared between multiple different
|
|
354
|
-
* applications: multiple applications could add
|
|
354
|
+
* applications: multiple applications could add multiple different chains with the same `id`,
|
|
355
355
|
* creating an ambiguity, or an application could register malicious chains with small variations
|
|
356
356
|
* of a popular chain's `id` and try to benefit from a typo in a legitimate application's
|
|
357
357
|
* `relayChain`.
|