forked from maik/IPFS-portal
fix: replace tom1687.no-ip.org with 192.168.1.176, add DateTimeEncoder for API datetime serialization
This commit is contained in:
@@ -17,7 +17,7 @@ import { NextRequest, NextResponse } from 'next/server';
|
||||
import { createPublicClient, http, type Address, type Hash, type Chain } from 'viem';
|
||||
import { IPFS_PORTAL_PAYMENT_ABI } from '@/lib/payment';
|
||||
|
||||
const RPC_URL = process.env.ZKSYNC_RPC_URL || 'http://tom1687.no-ip.org:3050';
|
||||
const RPC_URL = process.env.ZKSYNC_RPC_URL || 'http://192.168.1.176:3050';
|
||||
const CONTRACT_ADDRESS = (process.env.PAYMENT_CONTRACT_ADDRESS || '0xCBc6b8aeea129c206F4836799621C833Bf8B9BDe') as Address;
|
||||
|
||||
const zkSyncLocal: Chain = {
|
||||
|
||||
@@ -348,7 +348,7 @@ export default function PaymentPanel({
|
||||
<div className="flex items-center justify-between text-xs">
|
||||
<span className="text-surface-400">Tx</span>
|
||||
<a
|
||||
href={`http://tom1687.no-ip.org:3050/tx/${txHash}`}
|
||||
href={`http://192.168.1.176:3050/tx/${txHash}`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="flex items-center gap-1 text-brand-400 hover:text-brand-300 font-mono"
|
||||
|
||||
@@ -8,10 +8,10 @@ export const zkSyncLocal: Chain = {
|
||||
name: 'zkSync Local',
|
||||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
||||
rpcUrls: {
|
||||
default: { http: ['http://tom1687.no-ip.org:3050'] },
|
||||
default: { http: ['http://192.168.1.176:3050'] },
|
||||
},
|
||||
blockExplorers: {
|
||||
default: { name: 'Explorer', url: 'http://tom1687.no-ip.org:3050' },
|
||||
default: { name: 'Explorer', url: 'http://192.168.1.176:3050' },
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
+2
-2
@@ -50,8 +50,8 @@ const ZKSYNC_LOCAL_CHAIN = {
|
||||
chainId: '0x10E', // 270
|
||||
chainName: 'zkSync Local',
|
||||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
||||
rpcUrls: ['http://tom1687.no-ip.org:3050'],
|
||||
blockExplorerUrls: ['http://tom1687.no-ip.org:3050'],
|
||||
rpcUrls: ['http://192.168.1.176:3050'],
|
||||
blockExplorerUrls: ['http://192.168.1.176:3050'],
|
||||
};
|
||||
|
||||
/* ── EIP-6963 event-based provider discovery ── */
|
||||
|
||||
Reference in New Issue
Block a user