From faa9dd56c08f7119cc2e915c0f61ae816a1ad8cb Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 11 Apr 2018 10:55:34 -0400 Subject: [PATCH] Fixing reply error --- app/gas-relayer/src/service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/gas-relayer/src/service.js b/app/gas-relayer/src/service.js index 59a7420..57bb802 100644 --- a/app/gas-relayer/src/service.js +++ b/app/gas-relayer/src/service.js @@ -88,7 +88,7 @@ web3.shh.addPrivateKey(config.whisper.privateKey) const reply = async function(text, message){ try { - if(message.sig){ + if(message.sig !== undefined){ let shhOptions = { pubKey: message.sig, sig: kId, @@ -143,7 +143,7 @@ const processMessages = async function(error, message, subscription){ // Determine if gas price offered is worth at least the minimum const gasPrice = params[contract.allowedFunctions[functionName].gasPrice]; if(gasPrice < config.tokens[tokenAddress].minRelayFactor){ - return reply("_gasPrice less than minimum: ", config.tokens[tokenAddress.minRelayFactor]); + return reply("_gasPrice less than minimum", message); } // Obtain factor