From 5028b0d7199a185a07971ac8b028bb1d812c3b65 Mon Sep 17 00:00:00 2001 From: Igor Yalovoy Date: Tue, 14 Apr 2020 15:04:39 -0300 Subject: [PATCH] Update src/config.ts Co-Authored-By: Francisco Giordano --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 25a2a2b..49ae703 100644 --- a/src/config.ts +++ b/src/config.ts @@ -80,7 +80,7 @@ function getConfig(): Config { const config: Config = merge(defaultConfig, providedConfig); - if (config.gasPrice) config.node.gasPrice = config.gasPrice; + if (config.gasPrice !== undefined) config.node.gasPrice = config.gasPrice; if (config.blockGasLimit) config.node.gasLimit = config.blockGasLimit; if (config.node.gasPrice) config.node.gasPrice = `0x${config.node.gasPrice.toString(16)}`;