provisional_top_up_canister function
Top up the cycles of a canister in the local environment.
Implementation
Future<void> provisional_top_up_canister(Principal canister_id, BigInt cycles) async {
await SYSTEM_CANISTERS.management.call(
method_name: 'provisional_top_up_canister',
calltype: CallType.call,
put_bytes: c_forwards_one(
Record.of_the_map({
'canister_id': canister_id,
'amount': Nat(cycles),
})
),
);
}