Skip to content

Commit

Permalink
test bugfix: bytes not str
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmukai committed Jan 8, 2024
1 parent d09c1d2 commit becf007
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_psbt_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def test_parse_op_return_content():

psbt_parser = PSBTParser(p=tx, seed=seed, network=SettingsConstants.REGTEST)

assert psbt_parser.op_return == "Chancellor on the brink of third bailout"
# Remember to do the comparison as bytes
assert psbt_parser.op_return == "Chancellor on the brink of third bailout".encode()

# PSBT is an internal self-spend to the its own receive addr, but the parser categorizes it as "change"
assert psbt_parser.change_data == [
Expand Down

0 comments on commit becf007

Please sign in to comment.