Skip to content

Conversation

@mohd-kashif
Copy link
Contributor

Ticket: WIN-8692

@mohd-kashif mohd-kashif self-assigned this Jan 26, 2026
@mohd-kashif mohd-kashif marked this pull request as ready for review January 26, 2026 12:08
@mohd-kashif mohd-kashif requested a review from a team as a code owner January 26, 2026 12:08
if (senderIdx === bitgoIndex) {
// This sigIndex slot is for BitGo (HSM) - empty signature
emptySignatures.push(utils.createNewSig(''));
} else if (senderIdx === firstIndex) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add this condition in if block and rest everything can be else as both ways you are only adding empty signatures.

Comment on lines +402 to +405
if (senderIdx === bitgoIndex) {
addressMap.set(new Address(sender[bitgoIndex]), slotIdx);
} else if (senderIdx === firstIndex) {
addressMap.set(new Address(sender[firstIndex]), slotIdx);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If bitgoIndex and firstIndex does not require separate handling, it is wise to move them together and simply do -
addressMap.set(new Address(sender[senderIdx]), slotIdx);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants