Local DFX (user) > NNS canister

Good afternoon,

I am trying to deploy a canister but I am having trouble connecting my local DFX user to connect to the wallet canister with cycles I’ve setup in the NNS.

As you can see from this screenshot I have canister dl4zt-iqaaa-aaaag-auaxq-cai.

As you can see from this screenshot when I run: dfx wallet addresses --ic

I get “Error: Failed to call query function ‘list_addresses’ on wallet”

My principal ID when running dfx identity get-principal is listed in the NNS as a controller of the canister, as shown here: d7wdj-roqas-542fp-bcqej-2e6bc-hxpw7-zbjks-xfnss-cevuf-7gmmm-hae

Please can you assist me in connecting my local dfx user to this nns canister so I can utilise cycles.

Thanks

I think you are only setting the canister id as a wallet, but it is not actually running wallet code. Have you run dfx identity deploy-wallet with that canister as a target?

So I ran command: dfx identity deploy-wallet dl4zt-iqaaa-aaaag-auaxq-cai --network ic
And get error: The wallet canister “dl4zt-iqaaa-aaaag-auaxq-cai” already exists for user “nakaimotoko” on “ic” network.?
Is there a force command or something??

That is a misleading error message. It comes up if the target canister is not empty. Checking on the dashboard i can see some kind of hello world canister interface is installed.

If you dfx canister uninstall-code first, then it should work

1 Like

Thank you, that resolved it!

1 Like