[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / RawBolt11Invoice.java
index f40cf8c724de29bcfc1980a438cd87a6efd39802..29e49b8bc1c1bc1a58b444865b2adcdd8bae51e3 100644 (file)
@@ -40,7 +40,7 @@ public class RawBolt11Invoice extends CommonBase {
         * data part
         */
        public void set_data(org.ldk.structs.RawDataPart val) {
-               bindings.RawBolt11Invoice_set_data(this.ptr, val == null ? 0 : val.ptr);
+               bindings.RawBolt11Invoice_set_data(this.ptr, val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
                if (this != null) { this.ptrs_to.add(val); };
@@ -52,7 +52,7 @@ public class RawBolt11Invoice extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public boolean eq(org.ldk.structs.RawBolt11Invoice b) {
-               boolean ret = bindings.RawBolt11Invoice_eq(this.ptr, b == null ? 0 : b.ptr);
+               boolean ret = bindings.RawBolt11Invoice_eq(this.ptr, b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
                if (this != null) { this.ptrs_to.add(b); };
@@ -225,6 +225,9 @@ public class RawBolt11Invoice extends CommonBase {
                return ret_conv_14_arr;
        }
 
+       /**
+        * Returns `None` if no amount is set or on overflow.
+        */
        public Option_u64Z amount_pico_btc() {
                long ret = bindings.RawBolt11Invoice_amount_pico_btc(this.ptr);
                Reference.reachabilityFence(this);