Skip to content

Commit

Permalink
Merge pull request #84 from zkemail/contract-update
Browse files Browse the repository at this point in the history
Update contract address in UI
  • Loading branch information
Divide-By-0 authored Jul 7, 2023
2 parents 9218b70 + 561118e commit 4618ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ReactDOM from "react-dom";
import App from "./App";
import { WagmiConfig, createClient, configureChains, chain } from "wagmi";
import { publicProvider } from "wagmi/providers/public";
import { infuraProvider } from "wagmi/providers/infura";
import {
getDefaultWallets,
RainbowKitProvider,
Expand All @@ -14,7 +15,7 @@ import "@rainbow-me/rainbowkit/styles.css";

const { chains, provider, webSocketProvider } = configureChains(
[chain.goerli],
[publicProvider()]
[infuraProvider({ apiKey: 'd87bf713dd3a44e09e773c13a2e84cc6' }), publicProvider()]
);

const { connectors } = getDefaultWallets({
Expand Down
2 changes: 1 addition & 1 deletion src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const MainPage: React.FC<{}> = (props) => {
};

const { config } = usePrepareContractWrite({
addressOrName: "0x72D9d080853f1AfA52662D71A24D92498Ef84799", // TODO: get address
addressOrName: "0x79c1038ce01f0af9c3a2c3cf1357acd21ff61dd2", // TODO: get address
contractInterface: abi, // TODO: get abi
functionName: "mint",
args: [...reformatProofForChain(proof), publicSignals ? JSON.parse(publicSignals) : null],
Expand Down

0 comments on commit 4618ff9

Please sign in to comment.