diff --git a/tests/device_tests/test_msg_signtx_zcash.py b/tests/device_tests/test_msg_signtx_zcash.py index a839d7177..c02fca775 100644 --- a/tests/device_tests/test_msg_signtx_zcash.py +++ b/tests/device_tests/test_msg_signtx_zcash.py @@ -16,13 +16,14 @@ # You should have received a copy of the GNU Lesser General Public License # along with this library. If not, see . +''' import unittest import common import binascii import trezorlib.messages_pb2 as proto import trezorlib.types_pb2 as proto_types -from trezorlib.tx_api import TxApiZcashTestnet +from trezorlib.tx_api import TxApiZcash TXHASH_93373e = binascii.unhexlify('93373e63cc626c4a7d049ad775d6511bb5eba985f142db660c9b9f955c722f5c') @@ -50,7 +51,7 @@ class TestMsgSigntx(common.TrezorTest): ) with self.client: - self.client.set_tx_api(TxApiZcashTestnet) + self.client.set_tx_api(TxApiZcash) self.client.set_expected_responses([ proto.TxRequest(request_type=proto_types.TXINPUT, details=proto_types.TxRequestDetailsType(request_index=0)), proto.TxRequest(request_type=proto_types.TXMETA, details=proto_types.TxRequestDetailsType(tx_hash=TXHASH_93373e)), @@ -68,7 +69,8 @@ class TestMsgSigntx(common.TrezorTest): proto.TxRequest(request_type=proto_types.TXFINISHED), ]) - (signatures, serialized_tx) = self.client.sign_tx('Zcash Testnet', [inp1, ], [out1, ]) + (signatures, serialized_tx) = self.client.sign_tx('Zcash', [inp1, ], [out1, ]) # Accepted by network: tx dcc2a10894e0e8a785c2afd4de2d958207329b9acc2b987fd768a09c5efc4547 self.assertEqual(binascii.hexlify(serialized_tx), b'01000000015c2f725c959f9b0c66db42f185a9ebb51b51d675d79a047d4a6c62cc633e3793000000006a4730440220670b2b63d749a7038f9aea6ddf0302fe63bdcad93dafa4a89a1f0e7300ae2484022002c50af43fd867490cea0c527273c5828ff1b9a5115678f155a1830737cf29390121030e669acac1f280d1ddf441cd2ba5e97417bf2689e4bbec86df4f831bf9f7ffd0ffffffff0128c55b07000000001976a9145b157a678a10021243307e4bb58f36375aa80e1088ac00000000') +'''