From ce7669e94f69260bbca57105ac0f57c2a698e3d7 Mon Sep 17 00:00:00 2001 From: Bhanupratap Singh <83907431+wantedbear007@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:33:24 +0530 Subject: [PATCH] Fix topping-up-canister Option 2 command Existing: dfx cycles top-up `AMOUNT` `CANISTER_ID` --network ic New: dfx cycles top-up `CANISTER_ID` `AMOUNT` --network ic Cycles topup command takes Canister id first then amount. Without this pattern it returns this error. error: invalid value 'jqylk-byaaa-aaaal-qbymq-cai' for '': Unknown amount specifier: 'i' --- .../smart-contracts/topping-up/topping-up-canister.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/developer-docs/smart-contracts/topping-up/topping-up-canister.mdx b/docs/developer-docs/smart-contracts/topping-up/topping-up-canister.mdx index 1a80d9eaed..dcf43df2b0 100644 --- a/docs/developer-docs/smart-contracts/topping-up/topping-up-canister.mdx +++ b/docs/developer-docs/smart-contracts/topping-up/topping-up-canister.mdx @@ -80,7 +80,7 @@ If you have a cycles balance associated with your developer identity, you can to ```bash dfx cycles balance --network ic -dfx cycles top-up `AMOUNT` `CANISTER_ID` --network ic +dfx cycles top-up `CANISTER_ID` `AMOUNT` --network ic ``` This workflow uses the cycles ledger, a feature that requires `dfx` version `0.19.0`. To enable this feature, you will need to set the following environmental variable: