diff --git a/CHANGELOG.md b/CHANGELOG.md index e5305105fe..c765333ab8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -192,6 +192,10 @@ This is a breaking change. The only thing this was still serving was the /_/can - if there is no wallet to upgrade - if trying to upgrade a local wallet from outside of a project directory +### fix: canister creation cost is 0.1T cycles + +Canister creation fee was calculated with 1T cycles instead of 0.1T. + ### fix: dfx deploy and dfx canister install write .old.did files under .dfx/ When dfx deploy and dfx canister install upgrade a canister, they ensure that the diff --git a/src/dfx/src/lib/operations/canister/create_canister.rs b/src/dfx/src/lib/operations/canister/create_canister.rs index 51d3269c71..f4e024034f 100644 --- a/src/dfx/src/lib/operations/canister/create_canister.rs +++ b/src/dfx/src/lib/operations/canister/create_canister.rs @@ -16,8 +16,8 @@ use slog::info; use std::format; use std::time::Duration; -// The cycle fee for create request is 1T cycles. -const CANISTER_CREATE_FEE: u128 = 1_000_000_000_000_u128; +// The cycle fee for create request is 0.1T cycles. +const CANISTER_CREATE_FEE: u128 = 100_000_000_000_u128; // We do not know the minimum cycle balance a canister should have. // For now create the canister with 3T cycle balance. const CANISTER_INITIAL_CYCLE_BALANCE: u128 = 3_000_000_000_000_u128;