mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-02 19:55:56 +01:00
Merge pull request #1015 from aki-mizu/main
add pubkey to mint info if not set
This commit is contained in:
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user