Skip to content

Commit

Permalink
github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Mar 5, 2024
1 parent a0f389f commit 9e64a2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Run counterparty-lib tests

- name: Install wheels
- name: Run counterparty-lib tests
run: |
cd counterparty-lib
pytest
Expand Down
4 changes: 2 additions & 2 deletions counterparty-lib/counterpartylib/lib/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ def script_to_asm(scriptpubkey):
script = bytes(scriptpubkey, 'utf-8') if type(scriptpubkey) == str else bytes(scriptpubkey)
asm = utils.script_to_asm(script)
if asm[-1] == OP_CHECKMULTISIG:
asm[-2] = int.from_bytes(asm[-2])
asm[0] = int.from_bytes(asm[0])
asm[-2] = int.from_bytes(asm[-2], 'big')
asm[0] = int.from_bytes(asm[0], 'big')
return asm
except BaseException as e:
raise exceptions.DecodeError('invalid script')
Expand Down

0 comments on commit 9e64a2b

Please sign in to comment.