Bindings updates
[ldk-java] / ts / structs / ErrorAction.ts
index 9c3a7574178fe707560e8fafbc54e4033ded3e66..fed9258c47fb9e4e2613d5193a27961617110ee4 100644 (file)
@@ -27,8 +27,9 @@ export class DisconnectPeer extends ErrorAction {
        public msg: ErrorMessage;
        private constructor(ptr: number, obj: bindings.LDKErrorAction.DisconnectPeer) {
                super(null, ptr);
-               const msg: uint32_t = obj.msg;
-               ErrorMessage msg_hu_conv = new ErrorMessage(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: ErrorMessage = new ErrorMessage(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
@@ -41,8 +42,9 @@ export class SendErrorMessage extends ErrorAction {
        public msg: ErrorMessage;
        private constructor(ptr: number, obj: bindings.LDKErrorAction.SendErrorMessage) {
                super(null, ptr);
-               const msg: uint32_t = obj.msg;
-               ErrorMessage msg_hu_conv = new ErrorMessage(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: ErrorMessage = new ErrorMessage(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }