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,