Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / InvoicePayer.java
index 4c6d63f0d8b956245d35884e5866f234b8587599..a54ee10b19506fcd2d2c0393704b5604aac149aa 100644 (file)
@@ -76,7 +76,7 @@ public class InvoicePayer extends CommonBase {
         * [`EventHandler`]. Otherwise, calling this method is unnecessary.
         */
        public void remove_cached_payment(byte[] payment_hash) {
-               bindings.InvoicePayer_remove_cached_payment(this.ptr, payment_hash);
+               bindings.InvoicePayer_remove_cached_payment(this.ptr, InternalUtils.check_arr_len(payment_hash, 32));
        }
 
        /**