Skip to content

Commit

Permalink
trying scroll sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed May 15, 2024
1 parent 66149b8 commit 358f3f1
Show file tree
Hide file tree
Showing 6 changed files with 2,783 additions and 6 deletions.
1 change: 0 additions & 1 deletion vite-hardhat/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ artifacts

circuit/target/
dist
circuit/contract/
2,777 changes: 2,777 additions & 0 deletions vite-hardhat/circuit/contract/noirstarter/plonk_vk.sol

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions vite-hardhat/hardhat.config.cts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const config: HardhatUserConfig = {
},
},
paths: {
root: './',
sources: './circuit',
},
};
Expand Down
2 changes: 1 addition & 1 deletion vite-hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"prep": "cd circuit && nargo codegen-verifier",
"dev": "yarn prep && hardhat compile && yarn deploy && vite",
"build": "hardhat compile && yarn deploy && vite build",
"build": "yarn deploy && vite build",
"preview": "vite preview",
"deploy": "hardhat compile && NODE_OPTIONS='--experimental-loader ts-node/esm/transpile-only' hardhat run --network ${NETWORK:-localhost} scripts/deploy.ts",
"test": "NODE_OPTIONS='--experimental-loader ts-node/esm/transpile-only' hardhat test"
Expand Down
2 changes: 1 addition & 1 deletion vite-hardhat/utils/addresses.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"chainId":534351,"verifier":"0xe13d6439b73f75cb6672cafe8a8bd814bb8318b3"}
{"chainId":534351,"verifier":"0x6b38bbe0448f11f50c095547c8aa3526ebc95daa"}
6 changes: 3 additions & 3 deletions vite-hardhat/utils/wagmi.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { http, createConfig } from 'wagmi';
import { localhost, sepolia } from 'wagmi/chains';
import { localhost, scrollSepolia } from 'wagmi/chains';
import abi from './verifierAbi.json';
import { chainId, verifier } from './addresses.json';

export const config = createConfig({
chains: [localhost, sepolia],
chains: [localhost, scrollSepolia],
transports: {
[localhost.id]: http(),
[sepolia.id]: http(),
[scrollSepolia.id]: http(),
},
});

Expand Down

0 comments on commit 358f3f1

Please sign in to comment.