This commit is contained in:
Ting-Jun Wang 2023-05-10 19:55:03 +08:00
parent 6540c00042
commit 528775f51f
Signed by: snsd0805
GPG Key ID: 8DB0D22BC1217D33
4 changed files with 5 additions and 25 deletions

View File

@ -1,12 +1,11 @@
# 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.
![](docs/Screenshot_20230226_025506.png)
![](docs/Screenshot_20230508_220420.png)
![](docs/Screenshot_20230508_220621.png)
## Project Setup
@ -15,17 +14,6 @@ link to Metamask and create a transaction to the smart contract to get SepoliaET
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
```sh
@ -36,12 +24,4 @@ npm run dev
```sh
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB