From d7583107bcfcc5a913d5e522b142b6ce5a5fb70a Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 17 Oct 2019 20:02:13 +0300 Subject: [PATCH] BN fix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 38bea54..e128374 100644 --- a/index.js +++ b/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