Skip to content

Commit

Permalink
remove sepolia references and use optimismSepolia references
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Dec 20, 2024
1 parent 8df45ed commit 4c319bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pnpm run dev

This will start a local server on `http://localhost:3000` with the example app linked to local package

The burner wallet should be automatically connected to sepolia network, and can interact with the [`YourContract`](https://sepolia.etherscan.io/address/0x0D25b202D1B5126ECFcaeFa85f7a37ed86EF79ea) deployed on the sepolia.
The burner wallet should be automatically connected to optimism sepolia network, and can interact with the [`YourContract`](https://optimism-sepolia.blockscout.com/address/0xFB30C0790128b97e3aC540E6124e512E37c47D00).

## Testing with hardhat

Expand Down
3 changes: 2 additions & 1 deletion example/app/components/Example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
import { FaucetButton } from "./FaucetButton";
import toast from "react-hot-toast";
import deployedContracts from "../contracts/deployedContracts";
import { optimismSepolia } from "viem/chains";

export const Example = () => {
const { isConnected, chain } = useAccount();
Expand All @@ -19,7 +20,7 @@ export const Example = () => {
chain?.id && chain.id in deployedContracts
? deployedContracts[chain.id as keyof typeof deployedContracts]
.YourContract
: deployedContracts[11155420].YourContract;
: deployedContracts[optimismSepolia.id].YourContract;

const { data: totalCounter } = useReadContract({
...yourContract,
Expand Down

0 comments on commit 4c319bb

Please sign in to comment.