mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-12-15 15:59:44 -05:00
BN fix
This commit is contained in:
parent
9449e2a8b6
commit
d7583107bc
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -66,7 +66,7 @@ app.post('/relay', async (req, resp) => {
|
|||
let desiredFee
|
||||
switch (currency) {
|
||||
case 'eth': {
|
||||
if (refund !== 0) {
|
||||
if (!refund.isZero()) {
|
||||
return resp.status(400).json({ error: 'Cannot send refund for eth currency.' })
|
||||
}
|
||||
desiredFee = expense
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue