- this.payment_hash = bindings.LDKBalance_ContentiousClaimable_get_payment_hash(ptr);
- this.payment_preimage = bindings.LDKBalance_ContentiousClaimable_get_payment_preimage(ptr);
+ long payment_hash = bindings.LDKBalance_ContentiousClaimable_get_payment_hash(ptr);
+ byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash);
+ this.payment_hash = payment_hash_conv;
+ long payment_preimage = bindings.LDKBalance_ContentiousClaimable_get_payment_preimage(ptr);
+ byte[] payment_preimage_conv = InternalUtils.decodeUint8Array(payment_preimage);
+ this.payment_preimage = payment_preimage_conv;