@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.
@@ -21051,6 +21051,7 @@ async function createMultichainPaymentIntent({
21051
21051
 
21052
21052
  // src/stripe-multichain/pay_to_address.ts
21053
21053
  var DEFAULT_NETWORKS = ["tempo", "base", "solana"];
21054
+ var warnedRotatingSolanaMint = false;
21054
21055
  async function createPayToAddressFromStripePI(opts) {
21055
21056
  const fromCredential = await tryResolveFromCredential(opts);
21056
21057
  if (fromCredential !== null) return fromCredential;
@@ -21115,6 +21116,12 @@ async function mintAndCache(opts) {
21115
21116
  const staticRecipients = opts.staticRecipients ?? {};
21116
21117
  const requestedNetworks = opts.networks ?? [...DEFAULT_NETWORKS];
21117
21118
  const stripeNetworks = requestedNetworks.filter((n) => !(n in staticRecipients));
21119
+ if (stripeNetworks.includes("solana") && !warnedRotatingSolanaMint) {
21120
+ warnedRotatingSolanaMint = true;
21121
+ console.warn(
21122
+ "[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."
21123
+ );
21124
+ }
21118
21125
  const idempotencyKey = opts.orderId ? `pi-${opts.orderId}-${opts.amountCents}` : void 0;
21119
21126
  const { paymentIntentId, depositAddresses } = await createMultichainPaymentIntent({
21120
21127
  stripe: opts.stripe,