Skip to content

Commit 0792eec

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 49ccca4 commit 0792eec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/test_msg_solana_signtx.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ def test_solana_sign_token_transfer(self):
274274
raw_tx = self._build_tx(
275275
from_pubkey, [to_account, from_pubkey], self.TOKEN_PROGRAM, instr_data
276276
)
277-
with pytest.raises(CallException):
278-
self.client.call(messages.SolanaSignTx(
279-
address_n=parse_path("m/44'/501'/0'/0'"), raw_tx=raw_tx))
280-
277+
with pytest.raises(CallException) as exc:
278+
self.client.call(messages.SolanaSignTx(
279+
address_n=parse_path("m/44'/501'/0'/0'"), raw_tx=raw_tx))
280+
self.assertIn("policy", str(exc.value))
281281
def test_solana_sign_token_approve(self):
282282
"""Unchecked SPL Approve is opaque because no mint is signed."""
283283
self.requires_fullFeature()

0 commit comments

Comments
 (0)