web3: fix zero key comparison
This commit is contained in:
parent
89d7a0c8fd
commit
da74eabaa0
3
web3.nim
3
web3.nim
|
@ -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():
|
||||||
|
|
Loading…
Reference in New Issue