Skip to content

Commit 96c5805

Browse files
committed
test(7.15): align Solana wire case and OLED baselines
1 parent 68173d8 commit 96c5805

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

tests/test_msg_ethereum_signtx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ def test_ethereum_native_pseudo_address_is_unknown_off_mainnet(self):
4747
"transfer",
4848
binascii.unhexlify("a9059cbb" + "00" * 12) +
4949
recipient + int_to_big_endian(1).rjust(32, b"\x00"),
50-
"85d9054ee56836c1784c90dd777fc89444bf82b840d0818a59c73aa5b57ee35d",
50+
"7910ca5cdea6e4f6870dad52fde79fd55891fd38fe2ad5d3295502fdf578dfe7",
5151
),
5252
(
5353
"approve",
5454
binascii.unhexlify("095ea7b3" + "00" * 12) +
5555
recipient + int_to_big_endian(1).rjust(32, b"\x00"),
56-
"ab30156ff400957ffa9146ea827318bf878614e6ab4ae7dd731824e285fa5da6",
56+
"e8e44436251ef16cb00192f23adcc86f843201d676d1a3d2377a1e8ae6330c01",
5757
),
5858
)
5959

tests/test_msg_ethereum_signtx_xfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_native_pseudo_address_transfer_is_unknown_off_mainnet(self):
6161
self.assertGreaterEqual(len(recorder.screens), 2)
6262
self.assertEqual(
6363
hashlib.sha256(recorder.screens[0]).hexdigest(),
64-
"b0a3026e7af1778ebd71a968ace25c03945cccf2d8abc951e5dd65abc04e914e",
64+
"3915d325da0a0e9842d7eb3eaa6e01ef0bbf7e010790af883ca1a7f30770ae8f",
6565
)
6666
finally:
6767
self.client.apply_policy('AdvancedMode', 0)

tests/test_msg_solana_signtx.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,12 +659,13 @@ def test_solana_sign_token_transfer_with_metadata(self):
659659
0x7c, 0xa6, 0x02, 0x03, 0x45, 0x2f, 0x5d, 0x61,
660660
])
661661

662-
# TransferChecked signs the mint and decimals. Unchecked Transfer is
663-
# deliberately opaque because it carries neither.
664-
instr_data = bytes([12]) + struct.pack('<Q', 1000000) + bytes([6])
662+
# Unchecked Transfer (op 3) signs source, destination and authority but
663+
# carries neither mint nor decimals. Host token_info must not promote
664+
# that unauthenticated identity into a clear-signed transfer.
665+
instr_data = bytes([3]) + struct.pack('<Q', 1000000)
665666
raw_tx = self._build_tx(
666667
from_pubkey,
667-
[usdc_mint, to_account, from_pubkey],
668+
[to_account, from_pubkey],
668669
self.TOKEN_PROGRAM,
669670
instr_data,
670671
)

0 commit comments

Comments
 (0)