Skip to content

Commit 027146f

Browse files
committed
test(0x): enable AdvancedMode for transformERC20 blind-sign
transformERC20 to the 0x Exchange Proxy is blind contract data; since 7.15.0 the device hard-rejects blind data unless AdvancedMode is on (Insight clear- signing policy). Matches the existing test_sign_longdata_swap pattern in this file. Fixes the lone python-integration-tests failure after the firmware clear-signing merge.
1 parent ce4bdca commit 027146f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_msg_ethereum_erc20_0x_signtx.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ def test__sign_transformERC20(self):
166166
self.requires_fullFeature()
167167
self.requires_firmware("7.1.5")
168168
self.setup_mnemonic_nopin_nopassphrase()
169+
# transformERC20 to the 0x Exchange Proxy is blind contract data (no
170+
# recognized token / contract handler). Since 7.15.0 the device
171+
# hard-rejects blind contract data unless AdvancedMode is on (Insight
172+
# clear-signing policy) — same as test_sign_longdata_swap above. This
173+
# test checks signing correctness, so run it in expert mode.
174+
self.client.apply_policy("AdvancedMode", 1)
169175

170176
sig_v, sig_r, sig_s = self.client.ethereum_sign_tx(
171177
# Data from:

0 commit comments

Comments
 (0)