@agent-score/commerce 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21070,6 +21070,7 @@ async function createMultichainPaymentIntent({
21070
21070
 
21071
21071
  // src/stripe-multichain/pay_to_address.ts
21072
21072
  var DEFAULT_NETWORKS = ["tempo", "base", "solana"];
21073
+ var warnedRotatingSolanaMint = false;
21073
21074
  async function createPayToAddressFromStripePI(opts) {
21074
21075
  const fromCredential = await tryResolveFromCredential(opts);
21075
21076
  if (fromCredential !== null) return fromCredential;
@@ -21134,6 +21135,12 @@ async function mintAndCache(opts) {
21134
21135
  const staticRecipients = opts.staticRecipients ?? {};
21135
21136
  const requestedNetworks = opts.networks ?? [...DEFAULT_NETWORKS];
21136
21137
  const stripeNetworks = requestedNetworks.filter((n) => !(n in staticRecipients));
21138
+ if (stripeNetworks.includes("solana") && !warnedRotatingSolanaMint) {
21139
+ warnedRotatingSolanaMint = true;
21140
+ console.warn(
21141
+ "[stripe-multichain] Minting a per-PaymentIntent (rotating) Solana recipient. Solana MPP settle fails on @solana/mpp >=0.6.0 for rotating recipients: the client does not create the primary recipient ATA, so a fresh deposit address has no token account to receive into. Use a static Solana recipient with a pre-funded ATA (staticRecipients: { solana: '<wallet>' }), or drop 'solana' from networks."
21142
+ );
21143
+ }
21137
21144
  const idempotencyKey = opts.orderId ? `pi-${opts.orderId}-${opts.amountCents}` : void 0;
21138
21145
  const { paymentIntentId, depositAddresses } = await createMultichainPaymentIntent({
21139
21146
  stripe: opts.stripe,