Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
Adjusts yuidoc and little refactor of if.else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
toschdev committed Jun 21, 2017
1 parent 0163fd0 commit f2bc694
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/transactions/multisignature.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var slots = require('../time/slots.js');
* @param amount number
* @param secret secret
* @param secondSecret secret
* @requesterPublicKey string
* @param requesterPublicKey string
*
* @return {string}
*/
Expand All @@ -46,11 +46,8 @@ function createTransaction (recipientId, amount, secret, secondSecret, requester
var keys = crypto.getKeys(secret);
transaction.senderPublicKey = keys.publicKey;

if (requesterPublicKey) {
transaction.requesterPublicKey = requesterPublicKey;
} else {
transaction.requesterPublicKey = transaction.senderPublicKey;
}
transaction.requesterPublicKey = requesterPublicKey || transaction.senderPublicKey;


crypto.sign(transaction, keys);

Expand Down

0 comments on commit f2bc694

Please sign in to comment.