From c3653bf6e4232fb73126b332b70810a570e564e3 Mon Sep 17 00:00:00 2001 From: nikdementev Date: Thu, 29 Jul 2021 18:11:53 +0300 Subject: [PATCH] fix: compliance --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 5f093b1..fd77c19 100755 --- a/cli.js +++ b/cli.js @@ -599,7 +599,7 @@ async function loadWithdrawalData({ amount, currency, deposit }) { const fee = withdrawEvent.fee const decimals = config.deployments[`netId${netId}`][currency].decimals const withdrawalAmount = toBN(fromDecimals({ amount, decimals })).sub(toBN(fee)) - const { timestamp } = await web3.eth.getBlock(withdrawEvent.blockHash) + const { timestamp } = await web3.eth.getBlock(withdrawEvent.blockNumber) return { amount: toDecimals(withdrawalAmount, decimals, 9), txHash: withdrawEvent.transactionHash,