Run dfx wallet --network ic balance prompt no Wasm module

Hi guys, I am trying to deploy canister, I use the following steps

  1. I created a canister using Internet Computer Content Validation Bootstrap and recharged cycle.
  2. Run the dfx identity get-principal command, then I added my identity to the canister, update the controller.
  3. dfx identity --network ic set-wallet <my canister id>
  4. When I run dfx wallet --network ic balance
    Prompt me the following error
    The Replica returned an error: code 3, message: “IC0304: Attempt to execute a message on canister which contains no Wasm module”

Is there any solution?


dfx identity --network ic deploy-wallet <wallet_canister_id>

After that

dfx wallet --network ic balance

should work as intended.