mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
paytoedit: data to be pushed on stack needs to be hex
This commit is contained in:
parent
b043c872eb
commit
8ad111945a
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ from .qrtextedit import ScanQRTextEdit
|
|||
import re
|
||||
from decimal import Decimal
|
||||
from electrum import bitcoin
|
||||
from electrum.util import bfh
|
||||
|
||||
from . import util
|
||||
|
||||
|
@ -97,6 +98,7 @@ class PayToEdit(ScanQRTextEdit):
|
|||
assert opcode_int < 256 # opcode is single-byte
|
||||
script += bitcoin.int_to_hex(opcode_int)
|
||||
else:
|
||||
bfh(word) # to test it is hex data
|
||||
script += push_script(word)
|
||||
return script
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue