Skip to content

Commit

Permalink
don't check none address
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Mar 4, 2025
1 parent fe5a48a commit 09dc47c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion counterparty-core/counterpartycore/lib/messages/dispenser.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ def compose(
oracle_address: str = None,
skip_validation: bool = False,
):
if address_pack(oracle_address) != address_pack_new(oracle_address):
if oracle_address is not None and address_pack(oracle_address) != address_pack_new(
oracle_address
):
raise exceptions.ComposeError("Oracle address not supported by dispenser")

Check warning on line 253 in counterparty-core/counterpartycore/lib/messages/dispenser.py

View check run for this annotation

Codecov / codecov/patch

counterparty-core/counterpartycore/lib/messages/dispenser.py#L253

Added line #L253 was not covered by tests

asset_id, problems = validate(
Expand Down

0 comments on commit 09dc47c

Please sign in to comment.