Merge pull request #2 from TheBlueMatt/main
[ldk-java] / ts / structs / Pong.ts
index 63379926273f973d2bfc6cfb346a819abee8c5c0..58be169f8d101530f3d3079658feebe15c26c260 100644 (file)
@@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.Pong_free(this.ptr);
                     }
                 }
-       public Pong clone() {
-               number ret = bindings.Pong_clone(this.ptr);
-               const ret_hu_conv: Pong = new Pong(null, ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
        public number get_byteslen() {
                number ret = bindings.Pong_get_byteslen(this.ptr);
                return ret;
@@ -41,6 +34,13 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret_hu_conv;
        }
 
+       public Pong clone() {
+               number ret = bindings.Pong_clone(this.ptr);
+               const ret_hu_conv: Pong = new Pong(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
        public Uint8Array write() {
                Uint8Array ret = bindings.Pong_write(this.ptr);
                return ret;