From bf9e4523b9280aa73d2306169331b9c7b4aac612 Mon Sep 17 00:00:00 2001 From: Weifeng Jiang Date: Thu, 6 Jan 2022 10:57:16 +0800 Subject: [PATCH] fix the command parameter issues wallet_create_wallet and wallet_create_canister parameter issue. fixed. --- modules/developers-guide/pages/default-wallet.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/developers-guide/pages/default-wallet.adoc b/modules/developers-guide/pages/default-wallet.adoc index fd584d6fe..dcddc28d4 100644 --- a/modules/developers-guide/pages/default-wallet.adoc +++ b/modules/developers-guide/pages/default-wallet.adoc @@ -514,7 +514,7 @@ If you don't specify a controlling principal, the cycles wallet you use to creat For example, you can run a command similar to the following to create a new wallet and assign a principal as a controller: .... -dfx canister --network call f3yw6-7qaaa-aaaab-qaabq-cai wallet_create_wallet '(record { cycles = 5000000000000 : nat64; controller = principal "vpqee-nujda-46rtu-4noo7-qnxmb-zqs7g-5gvqf-4gy7t-vuprx-u2urx-gqe"})' +dfx canister --network call f3yw6-7qaaa-aaaab-qaabq-cai wallet_create_wallet '(record { cycles = 5000000000000 : nat64; settings = record {controller = opt principal "vpqee-nujda-46rtu-4noo7-qnxmb-zqs7g-5gvqf-4gy7t-vuprx-u2urx-gqe"};})' .... The command returns the principal for the new wallet: @@ -533,7 +533,7 @@ After you have registered the canister principal, you can install code for your For example, you can run a command similar to the following to create a new wallet and assign a principal as a controller: .... -dfx canister --network call f3yw6-7qaaa-aaaab-qaabq-cai wallet_create_canister '(record { cycles = 5000000000000 : nat64; controller = principal "vpqee-nujda-46rtu-4noo7-qnxmb-zqs7g-5gvqf-4gy7t-vuprx-u2urx-gqe"})' +dfx canister --network call f3yw6-7qaaa-aaaab-qaabq-cai wallet_create_canister '(record { cycles = 5000000000000 : nat64; settings = record {controller = opt principal "vpqee-nujda-46rtu-4noo7-qnxmb-zqs7g-5gvqf-4gy7t-vuprx-u2urx-gqe"};})' .... The command returns the principal for the new canister you created: