From eaf349d97c45cc4fef3a1f017fd200b74fd51f9b Mon Sep 17 00:00:00 2001 From: Garima Chauhan Date: Thu, 12 Dec 2024 08:48:06 +0530 Subject: [PATCH] fix: create string from internal change descriptor String representation for the internal descriptor was being generated by external descriptor instead. --- examples/rust/descriptors/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rust/descriptors/src/main.rs b/examples/rust/descriptors/src/main.rs index 8101ea6..ddd025d 100644 --- a/examples/rust/descriptors/src/main.rs +++ b/examples/rust/descriptors/src/main.rs @@ -23,7 +23,7 @@ fn main() -> () { .expect("Failed to build internal descriptor"); let descriptor_string_priv = descriptor.to_string_with_secret(&key_map); - let change_descriptor_string_priv = descriptor.to_string_with_secret(&change_key_map); + let change_descriptor_string_priv = change_descriptor.to_string_with_secret(&change_key_map); // --8<-- [end:main] println!(