|
15 | 15 | from aleph.sdk.chains.ethereum import ETHAccount |
16 | 16 | from aleph.sdk.client.vm_client import VmClient |
17 | 17 | from aleph.sdk.client.vm_confidential_client import VmConfidentialClient |
18 | | -from aleph.sdk.conf import load_main_configuration, settings, AccountType |
| 18 | +from aleph.sdk.conf import AccountType, load_main_configuration, settings |
19 | 19 | from aleph.sdk.evm_utils import ( |
20 | 20 | FlowUpdate, |
21 | 21 | get_chains_with_holding, |
@@ -179,7 +179,7 @@ async def create( |
179 | 179 | console.print("No active chain selected in configuration.") |
180 | 180 |
|
181 | 181 | # Populates account / address |
182 | | - if config and config.type == AccountType.EXTERNAL.value: |
| 182 | + if config and config.type == AccountType.EXTERNAL: |
183 | 183 | account = _load_account(None, None, chain=payment_chain) |
184 | 184 | else: |
185 | 185 | account = _load_account(private_key, private_key_file, chain=payment_chain) |
@@ -745,7 +745,7 @@ async def delete( |
745 | 745 |
|
746 | 746 | config = load_main_configuration(settings.CONFIG_FILE) |
747 | 747 | # Populates account / address |
748 | | - if config and config.type == AccountType.EXTERNAL.value: |
| 748 | + if config and config.type == AccountType.EXTERNAL: |
749 | 749 | account = _load_account(None, None, chain=chain) |
750 | 750 | else: |
751 | 751 | account = _load_account(private_key, private_key_file, chain=chain) |
@@ -866,7 +866,7 @@ async def list_instances( |
866 | 866 |
|
867 | 867 | config = load_main_configuration(settings.CONFIG_FILE) |
868 | 868 | # Populates account / address |
869 | | - if config and config.type == AccountType.EXTERNAL.value: |
| 869 | + if config and config.type == AccountType.EXTERNAL: |
870 | 870 | account = _load_account(None, None, chain=chain) |
871 | 871 | else: |
872 | 872 | account = _load_account(private_key, private_key_file, chain=chain) |
@@ -909,7 +909,7 @@ async def reboot( |
909 | 909 |
|
910 | 910 | config = load_main_configuration(settings.CONFIG_FILE) |
911 | 911 | # Populates account / address |
912 | | - if config and config.type == AccountType.EXTERNAL.value: |
| 912 | + if config and config.type == AccountType.EXTERNAL: |
913 | 913 | account = _load_account(None, None, chain=chain) |
914 | 914 | else: |
915 | 915 | account = _load_account(private_key, private_key_file, chain=chain) |
@@ -947,7 +947,7 @@ async def allocate( |
947 | 947 |
|
948 | 948 | config = load_main_configuration(settings.CONFIG_FILE) |
949 | 949 | # Populates account / address |
950 | | - if config and config.type == AccountType.EXTERNAL.value: |
| 950 | + if config and config.type == AccountType.EXTERNAL: |
951 | 951 | account = _load_account(None, None, chain=chain) |
952 | 952 | else: |
953 | 953 | account = _load_account(private_key, private_key_file, chain=chain) |
@@ -980,7 +980,7 @@ async def logs( |
980 | 980 |
|
981 | 981 | config = load_main_configuration(settings.CONFIG_FILE) |
982 | 982 | # Populates account / address |
983 | | - if config and config.type == AccountType.EXTERNAL.value: |
| 983 | + if config and config.type == AccountType.EXTERNAL: |
984 | 984 | account = _load_account(None, None, chain=chain) |
985 | 985 | else: |
986 | 986 | account = _load_account(private_key, private_key_file, chain=chain) |
@@ -1016,7 +1016,7 @@ async def stop( |
1016 | 1016 |
|
1017 | 1017 | config = load_main_configuration(settings.CONFIG_FILE) |
1018 | 1018 | # Populates account / address |
1019 | | - if config and config.type == AccountType.EXTERNAL.value: |
| 1019 | + if config and config.type == AccountType.EXTERNAL: |
1020 | 1020 | account = _load_account(None, None, chain=chain) |
1021 | 1021 | else: |
1022 | 1022 | account = _load_account(private_key, private_key_file, chain=chain) |
@@ -1060,7 +1060,7 @@ async def confidential_init_session( |
1060 | 1060 |
|
1061 | 1061 | config = load_main_configuration(settings.CONFIG_FILE) |
1062 | 1062 | # Populates account / address |
1063 | | - if config and config.type == AccountType.EXTERNAL.value: |
| 1063 | + if config and config.type == AccountType.EXTERNAL: |
1064 | 1064 | account = _load_account(None, None, chain=chain) |
1065 | 1065 | else: |
1066 | 1066 | account = _load_account(private_key, private_key_file, chain=chain) |
@@ -1142,7 +1142,7 @@ async def confidential_start( |
1142 | 1142 | vm_hash = ItemHash(vm_id) |
1143 | 1143 | config = load_main_configuration(settings.CONFIG_FILE) |
1144 | 1144 | # Populates account / address |
1145 | | - if config and config.type == AccountType.EXTERNAL.value: |
| 1145 | + if config and config.type == AccountType.EXTERNAL: |
1146 | 1146 | account = _load_account(None, None, chain=chain) |
1147 | 1147 | else: |
1148 | 1148 | account = _load_account(private_key, private_key_file, chain=chain) |
|
0 commit comments