accept id as arg for tx creation
This commit is contained in:
parent
b69edc44f2
commit
49929942e7
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue