diff --git a/src/modules/fund/fund.handler.js b/src/modules/fund/fund.handler.js index 88f50f3..225197f 100644 --- a/src/modules/fund/fund.handler.js +++ b/src/modules/fund/fund.handler.js @@ -8,11 +8,16 @@ const DayLong = 24 * 60 * 60 * 1000; */ class Fund { constructor (data) { - const { amount, blockNumber, hash } = data; + const { amount, blockNumber, hash, blockHash, from, to, timeStamp, value } = data; this.amount = +amount; + this.from = from; + this.to = to; + this.value = value; + this.timeStamp = timeStamp; this.status = 0; this.blockNumber = blockNumber; - this.blockHash = hash; + this.blockHash = blockHash; + this.hash = hash; const now = new Date(); const exp = calExpirePeriod(); this.createdAt = now.toISOString();