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
|
||||
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…
Reference in New Issue
Block a user