mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-12-17 08:44:06 -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
|
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…
Add table
Add a link
Reference in a new issue