mirror of
https://github.com/tornadocash/tornado-cli.git
synced 2024-11-22 01:37:08 +01:00
fix: compliance
This commit is contained in:
parent
d4f673a2ba
commit
c3653bf6e4
2
cli.js
2
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,
|
||||
|
Loading…
Reference in New Issue
Block a user