|
|
@ -20,6 +20,7 @@ TxProposal.create = function(opts) { |
|
|
|
var now = Date.now(); |
|
|
|
x.createdOn = Math.floor(now / 1000); |
|
|
|
x.id = _.padLeft(now, 14, '0') + Uuid.v4(); |
|
|
|
x.walletId = opts.walletId; |
|
|
|
x.creatorId = opts.creatorId; |
|
|
|
x.toAddress = opts.toAddress; |
|
|
|
x.amount = opts.amount; |
|
|
@ -45,6 +46,7 @@ TxProposal.fromObj = function(obj) { |
|
|
|
x.version = obj.version; |
|
|
|
x.createdOn = obj.createdOn; |
|
|
|
x.id = obj.id; |
|
|
|
x.walletId = obj.walletId; |
|
|
|
x.creatorId = obj.creatorId; |
|
|
|
x.toAddress = obj.toAddress; |
|
|
|
x.amount = obj.amount; |
|
|
|