Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go/http/evm_paywall_template.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion python/x402/http/paywall/evm_paywall_template.py

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion typescript/packages/http/paywall/src/evm/EvmPaywall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ export function EvmPaywall({ paymentRequired, onSuccessfulResponse }: EvmPaywall

const chainId = parseInt(network.split(":")[1]);

// Mezo Testnet (31611) and Mezo Mainnet (31612) use Mezo USD, not Circle USDC;
// the Circle faucet is a dead-end for these users. Route them to Mezo's mint flow.
const faucetUrl =
chainId === 31611 || chainId === 31612
? "https://mezo.org/feature/borrow"
: "https://faucet.circle.com/";

// Find the chain from viem's chain definitions
const paymentChain: Chain | undefined = Object.values(allChains).find(c => c.id === chainId);

Expand Down Expand Up @@ -205,7 +212,7 @@ export function EvmPaywall({ paymentRequired, onSuccessfulResponse }: EvmPaywall
{testnet && (
<p className="instructions">
Need {tokenName} on {chainName}?{" "}
<a href="https://faucet.circle.com/" target="_blank" rel="noopener noreferrer">
<a href={faucetUrl} target="_blank" rel="noopener noreferrer">
Get some <u>here</u>.
</a>
</p>
Expand Down
3 changes: 1 addition & 2 deletions typescript/packages/http/paywall/src/evm/gen/template.ts

Large diffs are not rendered by default.

Loading