can't create wallet canister
Open
Nobody has claimed this yet.
needs-triage
- Dominant language
- Rust
- Stars
- 204
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
I tried the following:
- create canister through nns dapp
- make local dfx identity controller of that canister
- try and install the wallet wasm into the canister
I expected to see this happen: the wasm is installed and i can set the canister as my identites wallet
Instead, this happened:
❯ dfx identity --network ic deploy-wallet obkml-oaaaa-aaaal-abk3q-cai
WARN: The default identity is not stored securely. Do not use it to control a lot of cycles/ICP. Create a new identity with `dfx identity create` and use it in mainnet-facing commands with the `--identity` flag
Creating a wallet canister on the ic network.
Error: Failed to create wallet for identity 'default' on network 'ic'.
Caused by: Failed to create wallet for identity 'default' on network 'ic'.
The wallet canister "obkml-oaaaa-aaaal-abk3q-cai" already exists for user "default" on "ic" network.
❯ dfx identity --network ic get-wallet
WARN: The default identity is not stored securely. Do not use it to control a lot of cycles/ICP. Create a new identity with `dfx identity create` and use it in mainnet-facing commands with the `--identity` flag
Error: Failed to get wallet for identity 'default' on network 'ic'.
Caused by: Failed to get wallet for identity 'default' on network 'ic'.
Wallet not configured.
Diagnosis was added here.
Error explanation:
This command requires a configured wallet, but the combination of identity 'default' and network 'ic' has no wallet set.
How to resolve the error:
To use an identity with a configured wallet you can do one of the following:
- Run the command for a network where you have a wallet configured. To do so, add '--network <network name>' to your command.
- Switch to an identity that has a wallet configured using 'dfx identity use <identity name>'.
- Configure a wallet for this identity/network combination: 'dfx identity set-wallet <wallet id> --network <network name>'.
Meta
dfx --version:
dfx 0.12.1
Further log output
<log output>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported dfx identity --network ic deploy-wallet and get-wallet commands using the stated identity, network, and canister ID. Trace how an existing wallet canister is detected versus how wallet configuration is read; done means the reported canister can be installed and consistently recognized as the identity's wallet, or the commands return a clear actionable error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- blockchain, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100