From c2bc803afb3f27b06ff0b033e7c240d54b78e888 Mon Sep 17 00:00:00 2001 From: Ting-Jun Wang Date: Fri, 7 Apr 2023 17:28:43 +0800 Subject: [PATCH] feat: env file --- .env.example | 1 + .gitignore | 1 + README.md | 14 ++++++-------- 3 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e2a6b98 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +VITE_BANK_ADDR = "" diff --git a/.gitignore b/.gitignore index f632787..880afd8 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ coverage *.njsproj *.sln *.sw? +.env \ No newline at end of file diff --git a/README.md b/README.md index fa8e56e..dadf216 100644 --- a/README.md +++ b/README.md @@ -17,14 +17,12 @@ npm install ### fill in your smart contract's address -```javascript -// /src/views/FaucetView.vue line 46 - const transactionParameters = { - from: ethereum.selectedAddress, - to: '', // smart contract's address - data: encodeFunctionCall, - value: '0x00', - } +```sh +cp .env.example .env +vim .env +''' +VITE_BANK_ADDR = "YOUR BANK ADDRESS" +''' ```