From 85e68c4fa36d07766f0559d96e076f38fd86818a Mon Sep 17 00:00:00 2001 From: Moritz Fuller <32162112+letmejustputthishere@users.noreply.github.com> Date: Thu, 15 Feb 2024 10:51:11 +0100 Subject: [PATCH 1/2] Update dfx-nns.md using new default 4943 port for the replica --- docs/cli-reference/dfx-nns.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli-reference/dfx-nns.md b/docs/cli-reference/dfx-nns.md index 6c5368ce47..837c5efe81 100644 --- a/docs/cli-reference/dfx-nns.md +++ b/docs/cli-reference/dfx-nns.md @@ -27,7 +27,7 @@ $ dfx nns install --help ## dfx nns import -Use the `dfx nns import` command to add the NNS canisters to the local `dfx.json`. It also downloads the did files and sets the canister IDs of the NNS cansiters so that you can make API calls to NNS canisters. +Use the `dfx nns import` command to add the NNS canisters to the local `dfx.json`. It also downloads the did files and sets the canister IDs of the NNS canisters so that you can make API calls to NNS canisters. ### Basic usage @@ -68,7 +68,7 @@ The local network needs to be set up with a very specific configuration: $ cat ~/.config/dfx/networks.json { "local": { - "bind": "127.0.0.1:8080", + "bind": "127.0.0.1:4943", "type": "ephemeral", "replica": { "subnet_type": "system" From 3411cb342e9abbe3148f7c7e5fde762ffd054149 Mon Sep 17 00:00:00 2001 From: Moritz Fuller <32162112+letmejustputthishere@users.noreply.github.com> Date: Thu, 15 Feb 2024 10:58:30 +0100 Subject: [PATCH 2/2] docs: dfx-nns.md added extra step to swithc identity --- docs/cli-reference/dfx-nns.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/cli-reference/dfx-nns.md b/docs/cli-reference/dfx-nns.md index 837c5efe81..56df95ad48 100644 --- a/docs/cli-reference/dfx-nns.md +++ b/docs/cli-reference/dfx-nns.md @@ -132,6 +132,10 @@ $ openssl ec -in ident-1.pem -noout -text ``` bash $ dfx identity import ident-1 ident-1.pem ``` +* Switch to the identity you just imported +```bash +$ dfx identity use ident-1 +``` * Now you can use the (toy) funds: ``` bash $ dfx ledger balance