Fixed wrong equality

This commit is contained in:
coffeepots 2018-08-24 18:34:54 +01:00
parent 3b82c9bd44
commit 6b68d6ddb2
1 changed files with 1 additions and 1 deletions

View File

@ -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