mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Correct error message
This commit is contained in:
parent
ea6d4264a7
commit
582bd1c9e4
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class Address(object):
|
|||
"""
|
||||
payment_id = numbers.PaymentID(payment_id)
|
||||
if not payment_id.is_short():
|
||||
raise TypeError("Integrated payment ID {0} has more than 64 bits".format(payment_id))
|
||||
raise TypeError("Payment ID {0} has more than 64 bits and cannot be integrated".format(payment_id))
|
||||
prefix = 54 if self.is_testnet() else 19
|
||||
data = bytearray([prefix]) + self._decoded[1:65] + struct.pack('>Q', int(payment_id))
|
||||
checksum = bytearray(keccak_256(data).digest()[:4])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue