Skip to content

Commit d4ecd36

Browse files
committed
remove hardcoded api host
1 parent 69de26f commit d4ecd36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/aleph_client/commands/node.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99

1010
import aiohttp
1111
import typer
12+
from aleph.sdk.conf import settings
13+
from aleph_client.commands.utils import setup_logging
14+
from aleph_client.utils import AsyncTyper
1215
from rich import text
1316
from rich.console import Console
1417
from rich.markup import escape
1518
from rich.table import Table
1619

17-
from aleph_client.commands.utils import setup_logging
18-
from aleph_client.utils import AsyncTyper
19-
2020
logger = logging.getLogger(__name__)
2121
app = AsyncTyper(no_args_is_help=True)
2222

23-
node_link = "https://api2.aleph.im/api/v0/aggregates/0xa1B3bb7d2332383D96b7796B908fB7f7F3c2Be10.json?keys=corechannel"
23+
node_link = f"{settings.API_HOST}/api/v0/aggregates/0xa1B3bb7d2332383D96b7796B908fB7f7F3c2Be10.json?keys=corechannel"
2424

2525

2626
class NodeInfo:

0 commit comments

Comments
 (0)