[bindings] Use global context for secp256k1
[rust-lightning] / c-bindings-gen / src / types.rs
index 2b195e2dcb957d630bf4478e3204fc5d76a895c5..60ee11120009f40038d34723f0aba902aee5e221 100644 (file)
@@ -583,7 +583,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
        /// Returns true we if can just skip passing this to C entirely
        fn no_arg_path_to_rust(&self, full_path: &str) -> &str {
                if full_path == "bitcoin::secp256k1::Secp256k1" {
-                       "&bitcoin::secp256k1::Secp256k1::new()"
+                       "secp256k1::SECP256K1"
                } else { unimplemented!(); }
        }