Skip to content

Commit 7373fd1

Browse files
UPDATE. enforcing immutability for GenesisParameters and ProtocolParameters
1 parent 782aa40 commit 7373fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycardano/backend/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
ALONZO_COINS_PER_UTXO_WORD = 34482
2020

2121

22-
@dataclass
22+
@dataclass(frozen=True)
2323
class GenesisParameters:
2424
"""Cardano genesis parameters"""
2525

@@ -44,7 +44,7 @@ class GenesisParameters:
4444
security_param: int
4545

4646

47-
@dataclass
47+
@dataclass(frozen=True)
4848
class ProtocolParameters:
4949
"""Cardano protocol parameters"""
5050

0 commit comments

Comments
 (0)