From 6b68d6ddb299c325becffe8a13ba6acf4813eebd Mon Sep 17 00:00:00 2001 From: coffeepots Date: Fri, 24 Aug 2018 18:34:54 +0100 Subject: [PATCH] Fixed wrong equality --- nimbus/transaction.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimbus/transaction.nim b/nimbus/transaction.nim index 565f7d84f..ca2bc2d2a 100644 --- a/nimbus/transaction.nim +++ b/nimbus/transaction.nim @@ -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