Skip to content

Commit ba7cc1f

Browse files
committed
Wrong assignment.
1 parent 6f7a930 commit ba7cc1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/moeralib/node/cartes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def to_scope_mask(scope: List[Scope]) -> int:
7575
return mask
7676

7777

78-
def generate_carte(owner_name: str | None, signing_key: ec.EllipticCurvePrivateKey, beginning: Timestamp | None,
78+
def generate_carte(owner_name: str | None, signing_key: ec.EllipticCurvePrivateKey, beginning: Timestamp,
7979
ttl: int = 600, address: str | None = None, node_name: str | None = None,
8080
client_scope: List[Scope] | int = SCOPE_VALUES["all"], admin_scope: List[Scope] | int = 0) -> str:
8181
"""
@@ -95,7 +95,7 @@ def generate_carte(owner_name: str | None, signing_key: ec.EllipticCurvePrivateK
9595
if isinstance(client_scope, list):
9696
client_scope = to_scope_mask(client_scope)
9797
if isinstance(admin_scope, list):
98-
client_scope = to_scope_mask(admin_scope)
98+
admin_scope = to_scope_mask(admin_scope)
9999
fingerprint = create_carte_fingerprint2(owner_name, address, beginning, beginning + ttl, node_name, client_scope,
100100
admin_scope, os.urandom(8))
101101
signature = sign_fingerprint(fingerprint, signing_key)

0 commit comments

Comments
 (0)