Skip to content

Commit fd74022

Browse files
KINGH242Hareem Adderleycffls
authored
fix: use OrderedSet or List for pool_owners (#430)
* fix: use OrderedSet or List for pool_owners * Fix format --------- Co-authored-by: Hareem Adderley <[email protected]> Co-authored-by: Jerry <[email protected]>
1 parent 8211dee commit fd74022

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pycardano/pool_params.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from pycardano.serialization import (
2222
ArrayCBORSerializable,
2323
CBORSerializable,
24+
OrderedSet,
2425
limit_primitive_type,
2526
)
2627

@@ -242,7 +243,7 @@ class PoolParams(ArrayCBORSerializable):
242243
cost: int
243244
margin: Fraction
244245
reward_account: RewardAccountHash
245-
pool_owners: List[VerificationKeyHash]
246+
pool_owners: Union[List[VerificationKeyHash], OrderedSet[VerificationKeyHash]]
246247
relays: Optional[List[Relay]] = None
247248
pool_metadata: Optional[PoolMetadata] = None
248249
id: Optional[PoolId] = field(default=None, metadata={"optional": True})

0 commit comments

Comments
 (0)