@relai-fi/x402 0.6.11-rc.1 → 0.6.11-rc.2
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.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4550,10 +4550,10 @@ function buildClaimUrl(facilitatorUrl, claimToken) {
|
|
|
4550
4550
|
}
|
|
4551
4551
|
function resolveSolanaRelayerConfig(relayerInfo, network) {
|
|
4552
4552
|
const networkInfo = relayerInfo?.networks?.[network] ?? null;
|
|
4553
|
-
const relayerAddr = typeof networkInfo?.address === "string" && networkInfo.address.trim() ? networkInfo.address.trim() :
|
|
4553
|
+
const relayerAddr = typeof networkInfo?.address === "string" && networkInfo.address.trim() ? networkInfo.address.trim() : "";
|
|
4554
4554
|
const programId = typeof relayerInfo?.programId === "string" ? relayerInfo.programId.trim() : "";
|
|
4555
4555
|
const usdcMint = typeof networkInfo?.usdc === "string" && networkInfo.usdc.trim() ? networkInfo.usdc.trim() : network === "solana-devnet" ? "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU" : "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
4556
|
-
if (!relayerAddr) throw new Error(`Missing relayer address for ${network}`);
|
|
4556
|
+
if (!relayerAddr) throw new Error(`Missing per-network relayer address for ${network} in relayer-info response`);
|
|
4557
4557
|
if (!programId) throw new Error("Missing Solana payment-code programId");
|
|
4558
4558
|
return { relayerAddr, programId, usdcMint };
|
|
4559
4559
|
}
|