From 3c48f906b24e5fa8a9c3e5b40375b1a50eb73e08 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 20 Aug 2018 15:51:31 +0200 Subject: [PATCH] tests: fix eip155 test --- trezorlib/ethereum.py | 2 +- trezorlib/tests/device_tests/test_msg_ethereum_signtx_eip155.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trezorlib/ethereum.py b/trezorlib/ethereum.py index 041be4e487..34ecdf96af 100644 --- a/trezorlib/ethereum.py +++ b/trezorlib/ethereum.py @@ -56,7 +56,7 @@ def sign_tx( data, chunk = data[data_length:], data[:data_length] response = client.call(proto.EthereumTxAck(data_chunk=chunk)) - # https://github.com/trezor/trezor-mcu/pull/399 + # https://github.com/trezor/trezor-core/pull/311 # only signature bit returned. recalculate signature_v if response.signature_v <= 1: response.signature_v += 2 * chain_id + 35 diff --git a/trezorlib/tests/device_tests/test_msg_ethereum_signtx_eip155.py b/trezorlib/tests/device_tests/test_msg_ethereum_signtx_eip155.py index 4e07dcca7a..a45e634847 100644 --- a/trezorlib/tests/device_tests/test_msg_ethereum_signtx_eip155.py +++ b/trezorlib/tests/device_tests/test_msg_ethereum_signtx_eip155.py @@ -163,7 +163,7 @@ class TestMsgEthereumSigntxChainId(TrezorTest): ( 2147483630, 1, - 4294967295, + 4294967296, b"fd0377ff429a51ae284c4b09b7d7c26c78944c86bb311b5988d70be4fc59eeba", b"2ad183858ac6b1efa820b9ee2c2dbf6659a73cc5b714d32c380b263d024f2ee9", 0,