mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-07 02:59:53 +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
|
import re
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from electrum import bitcoin
|
from electrum import bitcoin
|
||||||
|
from electrum.util import bfh
|
||||||
|
|
||||||
from . import util
|
from . import util
|
||||||
|
|
||||||
|
@ -97,6 +98,7 @@ class PayToEdit(ScanQRTextEdit):
|
||||||
assert opcode_int < 256 # opcode is single-byte
|
assert opcode_int < 256 # opcode is single-byte
|
||||||
script += bitcoin.int_to_hex(opcode_int)
|
script += bitcoin.int_to_hex(opcode_int)
|
||||||
else:
|
else:
|
||||||
|
bfh(word) # to test it is hex data
|
||||||
script += push_script(word)
|
script += push_script(word)
|
||||||
return script
|
return script
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue