I fixed the cycles cost to create_canister which should be 0.1T instead of 1T.
And I added another method create_canister_with_extra_cycles so that you can specify extra cycles to the new canister.
Update: The PR was merged and ic-cdk v0.6.2 got published.
That’s sort of an deceptive API to have ( create_canister_with_extra_cycles), in that if one specifies 1T cycles, it actually spends 1.1T cycles (100 billion burned for canister creation).
It also seems like create_canister_with_extra_cycles will become preferred by developers and should be the default API used, since it would reduce the number of steps taken in spinning up and funding a new canister.
This seems like a backwards-incompatible change to create_canister - won’t this break existing applications that are dynamically spinning up canisters, since after this change the newly spun up canister won’t have any cycles left over afterwards? (requires manual intervention and additional top-up step, as opposed to previously expecting the canister to have 0.9T cycles left over).