diff --git a/crates/cdk/src/mint/mod.rs b/crates/cdk/src/mint/mod.rs index c46c5be8..6ded402b 100644 --- a/crates/cdk/src/mint/mod.rs +++ b/crates/cdk/src/mint/mod.rs @@ -86,6 +86,26 @@ impl Mint { }) } + /// Set Mint Url + pub fn set_mint_url(&mut self, mint_url: UncheckedUrl) { + self.mint_url = mint_url; + } + + /// Get Mint Url + pub fn get_mint_url(&self) -> &UncheckedUrl { + &self.mint_url + } + + /// Set Mint Info + pub fn set_mint_info(&mut self, mint_info: MintInfo) { + self.mint_info = mint_info; + } + + /// Get Mint Info + pub fn mint_info(&self) -> &MintInfo { + &self.mint_info + } + /// New mint quote pub async fn new_mint_quote( &self, @@ -721,16 +741,6 @@ impl Mint { }) } - /// Set Mint Info - pub fn set_mint_info(&mut self, mint_info: MintInfo) { - self.mint_info = mint_info; - } - - /// Get Mint Info - pub fn mint_info(&self) -> Result { - Ok(self.mint_info.clone()) - } - /// Restore pub async fn restore(&self, request: RestoreRequest) -> Result { let output_len = request.outputs.len();