Skip to content

Commit

Permalink
Fix: Added chain argument on initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres D. Molins committed Nov 1, 2024
1 parent cde1e2f commit 745df74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aleph/sdk/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def account_from_file(
return account_type(private_key) # type: ignore

account_type = load_chain_account_type(chain)
account = account_type(private_key)
account = account_type(private_key, chain)
if chain in get_chains_with_super_token():
account.switch_chain(chain)
return account
Expand All @@ -101,7 +101,7 @@ def _load_account(
f"Detected {config.chain} account for path {settings.CONFIG_FILE}"
)
else:
account_type = account_type = load_chain_account_type(
account_type = load_chain_account_type(
Chain.ETH
) # Defaults to ETHAccount
logger.warning(
Expand Down

0 comments on commit 745df74

Please sign in to comment.