Skip to content

Commit

Permalink
change to sepolia again
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Sep 10, 2024
1 parent 860969f commit 15cfbee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ export const NETWORK_NAMES = {
ZKEVM_MAINNET: 'ZKEVM Mainnet',

STELLAR_MAINNET: 'Stellar Mainnet',
};
};

export const baseAttestationScan = {
8453: 'https://base.easscan.org/attestation/view/',
84532: 'https://base-sepolia.easscan.org/attestation/view/',
}
8 changes: 4 additions & 4 deletions src/routes/replyAttestation.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import neynarClient from "../helpers/neynarClient.js";
import {getProvider} from "../helpers/ethers.js";
import {NETWORK_IDS} from "../helpers/constants.js";
import {baseAttestationScan, NETWORK_IDS} from "../helpers/constants.js";
import {JsonRpcProvider} from "ethers";

const baseAttestationScan = 'https://base.easscan.org/attestation/view/';
const chainId = NETWORK_IDS.BASE_SEPOLIA as 84532;

const wait = async (ms: number) => new Promise(resolve => setTimeout(resolve, ms));

Expand All @@ -26,7 +26,7 @@ const replyAttestation = async (req: Request) => {
console.log('txHash', txHash);
console.log('praiseHash', praiseHash);
console.log('-----------------');
const provider = getProvider(NETWORK_IDS.BASE_MAINNET);
const provider = getProvider(chainId);
let attestationHash;
let loopCount = 0;
while (!attestationHash || loopCount < 10) {
Expand All @@ -44,7 +44,7 @@ const replyAttestation = async (req: Request) => {
This is the attestation URL you just minted:
${baseAttestationScan + attestationHash}`,
${baseAttestationScan[chainId] + attestationHash}`,
{
replyTo: praiseHash,
}
Expand Down

0 comments on commit 15cfbee

Please sign in to comment.