Fixed wrong equality
This commit is contained in:
parent
3b82c9bd44
commit
6b68d6ddb2
|
@ -54,7 +54,7 @@ proc getSender*(transaction: Transaction, output: var EthAddress): bool =
|
|||
txHash = transaction.hash # hash without signature
|
||||
sig = transaction.toSignature()
|
||||
var pubKey: PublicKey
|
||||
if recoverSignatureKey(sig, txHash.data, pubKey) != EthKeysStatus.Success:
|
||||
if recoverSignatureKey(sig, txHash.data, pubKey) == EthKeysStatus.Success:
|
||||
output = pubKey.toCanonicalAddress()
|
||||
result = true
|
||||
|
||||
|
|
Loading…
Reference in New Issue