Skip to content

Commit

Permalink
base provided for parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Jun 3, 2024
1 parent b577aac commit 5634e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/protocols/shamir/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class ShamirShare {

let _remaining = senders_list.length;
for (let i = 0; i < senders_list.length; i++) {
p_id = senders_list[parseInt(i)];
p_id = senders_list[parseInt(i, 10)];
if (p_id === jiff.id) {
// Keep party's own share
var my_share = jiff.hooks.execute_array_hooks('receiveShare', [jiff, p_id, shares[p_id]], 2);
Expand Down

0 comments on commit 5634e51

Please sign in to comment.