accept id as arg for tx creation

This commit is contained in:
Ivan Socolsky 2016-07-26 11:00:52 -03:00
parent b69edc44f2
commit 49929942e7
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ TxProposal.create = function(opts) {
var now = Date.now(); var now = Date.now();
x.createdOn = Math.floor(now / 1000); x.createdOn = Math.floor(now / 1000);
x.id = _.padLeft(now, 14, '0') + Uuid.v4(); x.id = opts.id || Uuid.v4();
x.walletId = opts.walletId; x.walletId = opts.walletId;
x.creatorId = opts.creatorId; x.creatorId = opts.creatorId;
x.message = opts.message; x.message = opts.message;