Skip to content

Commit 33512f0

Browse files
Andres D. Molins1yam
authored andcommitted
Fix: Solve enum values issue again.
1 parent ebf0b38 commit 33512f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/aleph/sdk/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _load_account(
143143
# )
144144
# )
145145
# New Ledger Implementation
146-
elif config and config.address and config.type == AccountType.EXTERNAL.value:
146+
elif config and config.address and config.type == AccountType.EXTERNAL:
147147
logger.debug("Using remote account")
148148
ledger_account = LedgerETHAccount.from_address(config.address)
149149
if ledger_account:

src/aleph/sdk/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class MainConfiguration(BaseModel):
338338

339339
if "path" in config_data and (
340340
"type" not in config_data
341-
or config_data["type"] == AccountType.INTERNAL.value
341+
or config_data["type"] == AccountType.INTERNAL
342342
):
343343
settings.PRIVATE_KEY_FILE = Path(config_data["path"])
344344
except json.JSONDecodeError:

0 commit comments

Comments
 (0)