- uint32_t res = bindings.LDKCResult_InMemoryChannelKeysDecodeErrorZ_get_ok(ptr);
- InMemoryChannelKeys res_hu_conv = new InMemoryChannelKeys(null, res);
+ number res = bindings.LDKCResult_InMemoryChannelKeysDecodeErrorZ_get_ok(ptr);
+ const res_hu_conv: InMemoryChannelKeys = new InMemoryChannelKeys(null, res);
+ res_hu_conv.ptrs_to.add(this);