File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ def id_map(cls, skip_constructor=False):
454
454
Constructs a unique representation of a PlutusData type definition.
455
455
Intended for automatic constructor generation.
456
456
"""
457
- if cls == bytes :
457
+ if cls == bytes or cls == ByteString :
458
458
return "bytes"
459
459
if cls == int :
460
460
return "int"
Original file line number Diff line number Diff line change @@ -431,16 +431,15 @@ class B(PlutusData):
431
431
def test_plutus_data_long_bytes ():
432
432
@dataclass
433
433
class A (PlutusData ):
434
+ CONSTR_ID = 0
434
435
a : ByteString
435
436
436
437
quote = (
437
438
"The line separating good and evil passes ... right through every human heart."
438
439
)
439
440
440
441
quote_hex = (
441
- "d866821a8e5890cf9f5f5840546865206c696e652073657061726174696e6720676f6f6420616"
442
- "e64206576696c20706173736573202e2e2e207269676874207468726f7567682065766572794d"
443
- "2068756d616e2068656172742effff"
442
+ "d8799f5f5840546865206c696e652073657061726174696e6720676f6f6420616e64206576696c20706173736573202e2e2e207269676874207468726f7567682065766572794d2068756d616e2068656172742effff"
444
443
)
445
444
446
445
A_tmp = A (ByteString (quote .encode ()))
You can’t perform that action at this time.
0 commit comments