X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FHTLCFailChannelUpdate.ts;h=2d33a1385654091867eb3b844375709eb0458525;hb=22f5f4208b1f3b5542292250f1612b944f5cd7fd;hp=e2813c2af6f67d08104701218c2db0894c7dc5dc;hpb=56e9910ffaa7fccf2cb777dc9cf55e01a9681543;p=ldk-java diff --git a/ts/structs/HTLCFailChannelUpdate.ts b/ts/structs/HTLCFailChannelUpdate.ts index e2813c2a..2d33a138 100644 --- a/ts/structs/HTLCFailChannelUpdate.ts +++ b/ts/structs/HTLCFailChannelUpdate.ts @@ -27,13 +27,13 @@ export class ChannelUpdateMessage extends HTLCFailChannelUpdate { public msg: ChannelUpdate; private constructor(ptr: number, obj: bindings.LDKHTLCFailChannelUpdate.ChannelUpdateMessage) { super(null, ptr); - const msg: uint32_t = obj.msg; - ChannelUpdate msg_hu_conv = new ChannelUpdate(null, msg); + const msg: number = obj.msg; + const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg); this.msg = msg_hu_conv; } } export class ChannelClosed extends HTLCFailChannelUpdate { - public short_channel_id: long; + public short_channel_id: number; public is_permanent: boolean; private constructor(ptr: number, obj: bindings.LDKHTLCFailChannelUpdate.ChannelClosed) { super(null, ptr); @@ -42,7 +42,7 @@ export class ChannelClosed extends HTLCFailChannelUpdate { } } export class NodeFailure extends HTLCFailChannelUpdate { - public node_id: byte[]; + public node_id: Uint8Array; public is_permanent: boolean; private constructor(ptr: number, obj: bindings.LDKHTLCFailChannelUpdate.NodeFailure) { super(null, ptr);