From 7c44761928279dadce57bed3fd0345954fe66a51 Mon Sep 17 00:00:00 2001 From: Ryan Tate Date: Thu, 21 Nov 2024 08:18:21 -0800 Subject: [PATCH] update client id schemes supported Signed-off-by: Ryan Tate --- src/core/metadata/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/metadata/mod.rs b/src/core/metadata/mod.rs index 941f21f..b536f60 100644 --- a/src/core/metadata/mod.rs +++ b/src/core/metadata/mod.rs @@ -68,19 +68,19 @@ impl WalletMetadata { Ok(()) } - /// Add a client ID scheme to the list of the client ID schemes supported. + /// Appends the client ID schemes to the list of the client ID schemes supported. /// - /// This method will construct a `client_id_schemes_supported` proprety in the - /// wallet metadata if none exists previously, otherwise, this method will add - /// the client ID scheme to the existing list of the client ID schemes supported. + /// This method will construct a `client_id_schemes_supported` property in the + /// wallet metadata if none exists previously, otherwise, this method will append + /// the client ID schemes to the existing list of the client ID schemes supported. pub fn add_client_id_schemes_supported( &mut self, - client_id_scheme: ClientIdScheme, + client_id_schemes: &[ClientIdScheme], ) -> Result<()> { let mut supported = self.0.get_or_default::()?; // Insert the scheme. - supported.0.push(client_id_scheme); + supported.0.extend_from_slice(client_id_schemes); // Insert the updated client IDs schemes supported. self.0.insert(supported);