web3: fix zero key comparison

This commit is contained in:
Jacek Sieka 2020-04-02 17:31:23 +02:00
parent 89d7a0c8fd
commit da74eabaa0
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 1 additions and 2 deletions

View File

@ -673,8 +673,7 @@ macro contract*(cname: untyped, body: untyped): untyped =
discard discard
proc signatureEnabled(w: Web3): bool {.inline.} = proc signatureEnabled(w: Web3): bool {.inline.} =
var pk: PrivateKey not w.privateKey.isZeroKey()
w.privateKey != pk
proc send*(web3: Web3, c: EthSend): Future[TxHash] {.async.} = proc send*(web3: Web3, c: EthSend): Future[TxHash] {.async.} =
if web3.signatureEnabled(): if web3.signatureEnabled():