Skip to content

Commit

Permalink
open.js open ND array undefined resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed May 24, 2024
1 parent b2b46da commit 445d919
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/client/protocols/arrays/open.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
class ArrayOpen {
open_array(jiff, shares, parties, op_ids) {
// A base operation id is provided to use for all opens.
if (typeof op_ids === 'string' || typeof op_ids === 'number') {
const tmp = { s1: op_ids };
for (let i = 1; i <= jiff.party_count; i++) {
tmp[i] = op_ids;
}
op_ids = tmp;
}

return open_ND_array(jiff, shares, parties, null, op_ids);
}

open_ND_array(jiff, shares, receivers_list, senders_list, op_ids) {
if (senders_list == null) {
senders_list = [];
Expand Down Expand Up @@ -105,6 +92,19 @@ class ArrayOpen {
return final_promise;
}

open_array(jiff, shares, parties, op_ids) {
// A base operation id is provided to use for all opens.
if (typeof op_ids === 'string' || typeof op_ids === 'number') {
const tmp = { s1: op_ids };
for (let i = 1; i <= jiff.party_count; i++) {
tmp[i] = op_ids;
}
op_ids = tmp;
}

return open_ND_array(jiff, shares, parties, null, op_ids);

Check failure on line 105 in lib/client/protocols/arrays/open.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

lib/client/protocols/arrays/open.js#L105

'open_ND_array' is not defined.
}

receive_open_ND_array(jiff, receivers_list, senders_list, threshold, Zp, op_ids) {
return open_ND_array(jiff, null, receivers_list, senders_list, op_ids);

Check failure on line 109 in lib/client/protocols/arrays/open.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

lib/client/protocols/arrays/open.js#L109

'open_ND_array' is not defined.
}
Expand Down

0 comments on commit 445d919

Please sign in to comment.