Skip to content

Commit

Permalink
Fixing 'Recipient not found' error on virgin accounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
karmacoma committed Apr 30, 2016
1 parent 53d5102 commit 056de54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,10 @@ shared.addTransactions = function (req, cb) {
if (err) {
return cb(err);
}
if (!recipient) {
var recipientId = recipient ? recipient.address : body.recipientId;
if (!recipientId) {
return cb("Recipient not found");
}
var recipientId = recipient ? recipient.address : body.recipientId;

if (body.multisigAccountPublicKey && body.multisigAccountPublicKey != keypair.publicKey.toString('hex')) {
modules.accounts.getAccount({publicKey: body.multisigAccountPublicKey}, function (err, account) {
Expand Down

0 comments on commit 056de54

Please sign in to comment.