Fixed test

This commit is contained in:
Yuriy Glukhov 2018-09-19 12:34:25 +03:00 committed by zah
parent 3d64c66b7a
commit 75f973e654
1 changed files with 1 additions and 7 deletions

View File

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