diff --git a/.github/workflows/build_wheels.yaml b/.github/workflows/build_wheels.yaml index ecf2872268..0b83ef4f1c 100644 --- a/.github/workflows/build_wheels.yaml +++ b/.github/workflows/build_wheels.yaml @@ -71,7 +71,7 @@ jobs: # Run counterparty-lib tests - - name: Install wheels + - name: Run counterparty-lib tests run: | cd counterparty-lib pytest diff --git a/counterparty-lib/counterpartylib/lib/script.py b/counterparty-lib/counterpartylib/lib/script.py index 6c240c97bb..bcdf1650b2 100644 --- a/counterparty-lib/counterpartylib/lib/script.py +++ b/counterparty-lib/counterpartylib/lib/script.py @@ -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')