mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2024-12-29 01:26:10 -05:00
BN fix
This commit is contained in:
parent
9449e2a8b6
commit
d7583107bc
2
index.js
2
index.js
@ -66,7 +66,7 @@ app.post('/relay', async (req, resp) => {
|
|||||||
let desiredFee
|
let desiredFee
|
||||||
switch (currency) {
|
switch (currency) {
|
||||||
case 'eth': {
|
case 'eth': {
|
||||||
if (refund !== 0) {
|
if (!refund.isZero()) {
|
||||||
return resp.status(400).json({ error: 'Cannot send refund for eth currency.' })
|
return resp.status(400).json({ error: 'Cannot send refund for eth currency.' })
|
||||||
}
|
}
|
||||||
desiredFee = expense
|
desiredFee = expense
|
||||||
|
Loading…
Reference in New Issue
Block a user