mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-23 15:44:50 +01:00
Keysets V2 (#702)
--------- Co-authored-by: thesimplekid <tsk@thesimplekid.com>
This commit is contained in:
@@ -91,7 +91,19 @@ pub async fn pay_request(
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
let proofs = matching_wallet.send(prepared_send, None).await?.proofs();
|
||||
|
||||
let token = matching_wallet.send(prepared_send, None).await?;
|
||||
|
||||
// We need the keysets information to properly convert from token proof to proof
|
||||
let keysets_info = match matching_wallet
|
||||
.localstore
|
||||
.get_mint_keysets(token.mint_url()?)
|
||||
.await?
|
||||
{
|
||||
Some(keysets_info) => keysets_info,
|
||||
None => matching_wallet.get_mint_keysets().await?, // Hit the keysets endpoint if we don't have the keysets for this Mint
|
||||
};
|
||||
let proofs = token.proofs(&keysets_info)?;
|
||||
|
||||
if let Some(transport) = transport {
|
||||
let payload = PaymentRequestPayload {
|
||||
|
||||
Reference in New Issue
Block a user