From 974b134a9a6e9c6028b00293dd20839d03f77a53 Mon Sep 17 00:00:00 2001 From: kevinheavey Date: Tue, 15 Oct 2024 01:44:08 +0400 Subject: [PATCH] remove references to message.is_writable() --- python/solders/instruction.pyi | 2 -- tests/test_message.py | 25 ------------------------- 2 files changed, 27 deletions(-) diff --git a/python/solders/instruction.pyi b/python/solders/instruction.pyi index 9cd4cc18..4338b674 100644 --- a/python/solders/instruction.pyi +++ b/python/solders/instruction.pyi @@ -8,8 +8,6 @@ class AccountMeta: def pubkey(self) -> Pubkey: ... @property def is_signer(self) -> bool: ... - @property - def is_writable(self) -> bool: ... def __repr__(self) -> str: ... def __str__(self) -> str: ... def __hash__(self) -> int: ... diff --git a/tests/test_message.py b/tests/test_message.py index 64d8ed7d..09e1eb07 100644 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -78,31 +78,6 @@ def test_program_position() -> None: assert message.program_position(1) == 0 assert message.program_position(2) == 1 - -def test_is_writable() -> None: - key0 = Pubkey.new_unique() - key1 = Pubkey.new_unique() - key2 = Pubkey.new_unique() - key3 = Pubkey.new_unique() - key4 = Pubkey.new_unique() - key5 = Pubkey.new_unique() - - message = Message.new_with_compiled_instructions( - num_required_signatures=3, - num_readonly_signed_accounts=2, - num_readonly_unsigned_accounts=1, - account_keys=[key0, key1, key2, key3, key4, key5], - recent_blockhash=Hash.default(), - instructions=[], - ) - assert message.is_writable(0) - assert not message.is_writable(1) - assert not message.is_writable(2) - assert message.is_writable(3) - assert message.is_writable(4) - assert not message.is_writable(5) - - def test_program_ids() -> None: key0 = Pubkey.new_unique() key1 = Pubkey.new_unique()