provisional_top_up_canister function

Future<void> provisional_top_up_canister(
  1. Principal canister_id,
  2. BigInt cycles
)

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),
            })
        ),
    );
}