From c0101added2c62e209c04dcb4d489add73b8f7e1 Mon Sep 17 00:00:00 2001 From: apoorvlathey Date: Fri, 22 Sep 2023 00:16:50 +0530 Subject: [PATCH] provide donation address via env --- .env.sample | 3 ++- .nvmrc | 1 + src/components/Footer.tsx | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .nvmrc diff --git a/.env.sample b/.env.sample index 0b15c0d..cabc3c7 100644 --- a/.env.sample +++ b/.env.sample @@ -1,4 +1,5 @@ REACT_APP_INFURA_KEY= REACT_APP_WC_PROJECT_ID= REACT_APP_GITCOIN_GRANTS_ACTIVE= -REACT_APP_GITCOIN_GRANTS_LINK= \ No newline at end of file +REACT_APP_GITCOIN_GRANTS_LINK= +REACT_APP_DONATION_ADDRESS= \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..95d62e4 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18.16.1 \ No newline at end of file diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 2e15804..e1ab1c5 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -64,7 +64,7 @@ function Footer() { const handleDonate = async (value: string) => { try { await sendTransaction({ - to: "0x63A556c75443b176b5A4078e929e38bEb37a1ff2", + to: process.env.REACT_APP_DONATION_ADDRESS!, value: parseEther(value), }); launchConfetti();