Skip to content

Commit

Permalink
refactor: Turned signAndAddSignatures function into arrow
Browse files Browse the repository at this point in the history
Signed-off-by: ivaylogarnev-limechain <[email protected]>
  • Loading branch information
ivaylogarnev-limechain committed Aug 27, 2024
1 parent 2fa0d22 commit cd9c6da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,15 @@ describe("Transaction", function () {
.freeze();
});

function signAndAddSignatures(transaction, ...keys) {
const signAndAddSignatures = (transaction, ...keys) => {
// Map through the keys to sign the transaction and add signatures
const signatures = keys.map((key) => {
const signature = key.signTransaction(transaction);
transaction.addSignature(key.publicKey, signature);
});

return signatures;
}
};

it("should remove a specific signature", function () {
// Sign the transaction with multiple keys
Expand Down

0 comments on commit cd9c6da

Please sign in to comment.