removed currency check
This commit is contained in:
parent
b04eea6463
commit
1e171e660d
|
@ -74,9 +74,6 @@ def xor_decrypt(key, blob):
|
||||||
s = BytesIO(payload)
|
s = BytesIO(payload)
|
||||||
pin = compact.read_from(s)
|
pin = compact.read_from(s)
|
||||||
# currency
|
# currency
|
||||||
currency = s.read(1)
|
|
||||||
if currency != USD_CENTS:
|
|
||||||
raise RuntimeError("Unsupported currency: %s" % currency)
|
|
||||||
amount_in_cent = compact.read_from(s)
|
amount_in_cent = compact.read_from(s)
|
||||||
if s.read():
|
if s.read():
|
||||||
raise RuntimeError("Unexpected data")
|
raise RuntimeError("Unexpected data")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user