Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,7 @@ export class LitNodeClientNodeJs
res = await this.handleNodePromises(
nodePromises,
requestId,
this.connectedNodes.size
this.config.minNodeCount
);
log('signSessionKey node promises:', res);
} catch (e) {
Expand Down Expand Up @@ -1934,7 +1934,11 @@ export class LitNodeClientNodeJs
for (const field of requiredFields) {
const key: keyof BlsResponseData = field as keyof BlsResponseData;

if (!data[key] || data[key] === '') {
if (
data[key] === undefined ||
data[key] === null ||
data[key] === ''
) {
log(
`[signSessionKey] Invalid signed data. "${field}" is missing. Not a problem, we only need ${this.config.minNodeCount} nodes to sign the session key.`
);
Expand Down
Loading