From 75f973e654f0c2c8ef2f994535f45285791d733d Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Wed, 19 Sep 2018 12:34:25 +0300 Subject: [PATCH] Fixed test --- tests/test_helpers.nim | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/test_helpers.nim b/tests/test_helpers.nim index d1e480e59..09e9a33ab 100644 --- a/tests/test_helpers.nim +++ b/tests/test_helpers.nim @@ -192,13 +192,7 @@ proc getFixtureTransactionSender*(j: JsonNode): EthAddress = var pubKey: PublicKey let transaction = j.getFixtureTransaction - if recoverSignatureKey(signMessage(privateKey, transaction.rlpEncode.toOpenArray), - transaction.hash.data, - pubKey) == EthKeysStatus.Success: - return pubKey.toCanonicalAddress() - else: - # XXX: appropriate failure mode; probably raise something - discard + transaction.getSender func getFixtureCode*(pre: JsonNode, targetAccount: EthAddress) : seq[byte] = # XXX: Workaround for broken setCode/getCode. Remove when feasible.