README
This commit is contained in:
parent
6540c00042
commit
528775f51f
30
README.md
30
README.md
@ -1,12 +1,11 @@
|
|||||||
# Faucet Webpage
|
# Faucet Webpage
|
||||||
|
|
||||||
A simple webpage for Sepolia Testnet's faucet.
|
It's HW3 for 1112 NCNU CSIE "Principles and Practice of Blockchains"
|
||||||
|
|
||||||
It's HW1 for 1112 NCNU CSIE "Principles and Practice of Blockchains"
|
link to Metamask and manage your ERC-20 token on Sepolia Testnet.
|
||||||
|
|
||||||
link to Metamask and create a transaction to the smart contract to get SepoliaETH.
|

|
||||||
|

|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
## Project Setup
|
## Project Setup
|
||||||
@ -15,17 +14,6 @@ link to Metamask and create a transaction to the smart contract to get SepoliaET
|
|||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### fill in your smart contract's address
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cp .env.example .env
|
|
||||||
vim .env
|
|
||||||
'''
|
|
||||||
VITE_BANK_ADDR = "YOUR BANK ADDRESS"
|
|
||||||
'''
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### Compile and Hot-Reload for Development
|
### Compile and Hot-Reload for Development
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@ -36,12 +24,4 @@ npm run dev
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notice
|
|
||||||
|
|
||||||
Now, I am not sure of difference between `window.ethereum` & `web3`
|
|
||||||
|
|
||||||
I use `window.ethereum` to send transaction, check accounts, check network and use `web3` to encode ABI.
|
|
||||||
|
|
||||||
I am not sure whether it's a suitable implementation
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 145 KiB |
BIN
docs/Screenshot_20230508_220420.png
Normal file
BIN
docs/Screenshot_20230508_220420.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
BIN
docs/Screenshot_20230508_220621.png
Normal file
BIN
docs/Screenshot_20230508_220621.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
Loading…
Reference in New Issue
Block a user