From da74eabaa00e2a8f7c58e8d84a02b701041dfc2d Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Thu, 2 Apr 2020 17:31:23 +0200 Subject: [PATCH] web3: fix zero key comparison --- web3.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web3.nim b/web3.nim index 4453e3c..17afa07 100644 --- a/web3.nim +++ b/web3.nim @@ -673,8 +673,7 @@ macro contract*(cname: untyped, body: untyped): untyped = discard proc signatureEnabled(w: Web3): bool {.inline.} = - var pk: PrivateKey - w.privateKey != pk + not w.privateKey.isZeroKey() proc send*(web3: Web3, c: EthSend): Future[TxHash] {.async.} = if web3.signatureEnabled():