Is there a particular reason why the ic-cdk function create_canister accepts an amount of cycles in u128 while the call_with_payment accepts u64?
Looking at the CDK source, it seems the create_canister method uses the newer call_with_payment128 internally. As far as I can find, u128 cycle support was added back in 2022 after initially it was only u64.
So a call_with_payment equivalent with u128 would be call_with_payment128.
1 Like
Thanks a lot! This answer my question and make me improve my code at the same time ![]()
1 Like
For context: cycles once were u64 but were changed to u128. There are thoughts of deprecating the u64 APIs eventually (still a looong time out, but still), so I would suggest if you have the choice you stick with the u128 APIs