From a62decfc241c9509aa90475c0a6cca9caccfa2b9 Mon Sep 17 00:00:00 2001 From: Darrell Date: Fri, 29 Aug 2025 15:23:51 +0900 Subject: [PATCH] add pubkey to mint info if not set --- crates/cdk/src/mint/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/cdk/src/mint/mod.rs b/crates/cdk/src/mint/mod.rs index 0c08e7d3..1c4ffb64 100644 --- a/crates/cdk/src/mint/mod.rs +++ b/crates/cdk/src/mint/mod.rs @@ -161,6 +161,14 @@ impl Mint { .count() ); + let mint_info = if mint_info.pubkey.is_none() { + let mut info = mint_info; + info.pubkey = Some(keysets.pubkey); + info + } else { + mint_info + }; + let mint_store = localstore.clone(); let mut tx = mint_store.begin_transaction().await?; tx.set_mint_info(mint_info.clone()).await?;