Skip to content

Commit 745df74

Browse files
author
Andres D. Molins
committed
Fix: Added chain argument on initialization.
1 parent cde1e2f commit 745df74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aleph/sdk/account.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def account_from_file(
7878
return account_type(private_key) # type: ignore
7979

8080
account_type = load_chain_account_type(chain)
81-
account = account_type(private_key)
81+
account = account_type(private_key, chain)
8282
if chain in get_chains_with_super_token():
8383
account.switch_chain(chain)
8484
return account
@@ -101,7 +101,7 @@ def _load_account(
101101
f"Detected {config.chain} account for path {settings.CONFIG_FILE}"
102102
)
103103
else:
104-
account_type = account_type = load_chain_account_type(
104+
account_type = load_chain_account_type(
105105
Chain.ETH
106106
) # Defaults to ETHAccount
107107
logger.warning(

0 commit comments

Comments
 (0)