Skip to content

Commit 8043d5b

Browse files
committed
fix: use HyperRPC for MegaETH
1 parent bd45b99 commit 8043d5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/contract/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
toEventSelector,
1717
toFunctionSelector,
1818
} from 'viem';
19-
import { celo, megaethTestnet, mode } from 'viem/chains';
19+
import { celo, mode } from 'viem/chains';
2020

2121
import EtherscanService from '@/services/etherscan';
2222
import MinioService, { type ContractSource } from '@/services/minio';
@@ -95,7 +95,7 @@ function getClient(chain: ChainId, alchemyKey: string): PublicClient {
9595
return celo.rpcUrls.default.http[0];
9696
}
9797
if (chain === MEGAETH_TESTNET) {
98-
return megaethTestnet.rpcUrls.default.http[0];
98+
return 'https://6342.rpc.hypersync.xyz/';
9999
}
100100
return alchemy(chain, alchemyKey);
101101
}

0 commit comments

Comments
 (0)