Skip to content

Commit 395fc79

Browse files
committed
Fix wrong chain account loading
1 parent a1c7313 commit 395fc79

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/aleph/sdk/account.py

Lines changed: 1 addition & 3 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, chain)
81+
account = account_type(private_key)
8282
if chain in get_chains_with_super_token():
8383
account.switch_chain(chain)
8484
return account
@@ -106,8 +106,6 @@ def _load_account(
106106
logger.warning(
107107
f"No main configuration found on path {settings.CONFIG_FILE}, defaulting to {chain}"
108108
)
109-
else:
110-
chain = default_chain
111109

112110
# Loads configuration if no account_type is specified
113111
if not account_type:

0 commit comments

Comments
 (0)