Skip to content

Commit

Permalink
remove references to message.is_writable()
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Oct 14, 2024
1 parent eb36ae0 commit 974b134
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions python/solders/instruction.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
25 changes: 0 additions & 25 deletions tests/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 974b134

Please sign in to comment.