Skip to content

Commit

Permalink
chore: use contract address from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Sep 1, 2023
1 parent 245013e commit 09bb172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/twitter-verifier-app/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_CONTRACT_ADDRESS=0x76E5978bdfA5Da926eCE0cE23F7A07648C525b5F
2 changes: 1 addition & 1 deletion packages/twitter-verifier-app/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const MainPage: React.FC<{}> = (props) => {
};

const { config } = usePrepareContractWrite({
address: "0x76E5978bdfA5Da926eCE0cE23F7A07648C525b5F", // TODO: get address
address: import.meta.env.VITE_CONTRACT_ADDRESS,
abi: abi,
functionName: "mint",
args: [
Expand Down

0 comments on commit 09bb172

Please sign in to comment.