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
|
||||
|
||||
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():
|
||||
|
|
Loading…
Reference in New Issue