X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FFuture.mts;fp=ts%2Fstructs%2FFuture.mts;h=2543184fed70d3548b9883ac35e54758e26e622c;hb=44e2b3520205dadcda0d34de8addc7a0b7ea7362;hp=ea757c6802625212798736cafb5e4780c15f8ea5;hpb=27b8cc09b5182166e0ee7d7071dff5abfe71b8a2;p=ldk-java diff --git a/ts/structs/Future.mts b/ts/structs/Future.mts index ea757c68..2543184f 100644 --- a/ts/structs/Future.mts +++ b/ts/structs/Future.mts @@ -467,7 +467,7 @@ export class Future extends CommonBase { * completed, the callback will be called immediately. */ public register_callback_fn(callback: FutureCallback): void { - bindings.Future_register_callback_fn(this.ptr, callback == null ? 0n : CommonBase.get_ptr_of(callback)); + bindings.Future_register_callback_fn(this.ptr, CommonBase.get_ptr_of(callback)); CommonBase.add_ref_from(this, callback); }