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
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():