/**
* Creates a new CResult_RoutingFeesDecodeErrorZ in the success state.
*/
- public static Result_RoutingFeesDecodeErrorZ ok(RoutingFees o) {
+ public static Result_RoutingFeesDecodeErrorZ ok(org.ldk.structs.RoutingFees o) {
long ret = bindings.CResult_RoutingFeesDecodeErrorZ_ok(o == null ? 0 : o.ptr);
Reference.reachabilityFence(o);
if (ret >= 0 && ret <= 4096) { return null; }
/**
* Creates a new CResult_RoutingFeesDecodeErrorZ in the error state.
*/
- public static Result_RoutingFeesDecodeErrorZ err(DecodeError e) {
+ public static Result_RoutingFeesDecodeErrorZ err(org.ldk.structs.DecodeError e) {
long ret = bindings.CResult_RoutingFeesDecodeErrorZ_err(e.ptr);
Reference.reachabilityFence(e);
if (ret >= 0 && ret <= 4096) { return null; }
Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
return ret_hu_conv;
}