[bindings] Use global context for secp256k1
[rust-lightning] / c-bindings-gen / src / types.rs
index e7244039f4bcc5a32ab230b9f0a22640c56f28fd..7fc7e4cd905cff8d1cc66cd39aba44988b38c535 100644 (file)
@@ -587,7 +587,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!(); }
        }