From ef66042e49a6c142fa3b42e8bcb6927667677f5e Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Wed, 2 Oct 2019 23:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9fund=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/fund/fund.handler.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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();