Go to file
2024-08-07 08:50:52 +08:00
.gitignore First commit 2024-08-07 06:07:02 +08:00
.prettierignore First commit 2024-08-07 06:07:02 +08:00
.prettierrc First commit 2024-08-07 06:07:02 +08:00
constants.js Localhost Hardhat Node Test Ready 2024-08-07 06:57:26 +08:00
ethers-5.6.esm.min.js Localhost Hardhat Node Test Ready 2024-08-07 06:57:26 +08:00
ethers-6.13.2.min.js Localhost Hardhat Node Test Ready 2024-08-07 06:57:26 +08:00
index.html Fund & Withdraw Front-end Ready 2024-08-07 08:50:52 +08:00
index.js Fund & Withdraw Front-end Ready 2024-08-07 08:50:52 +08:00
package.json Localhost Hardhat Node Test Ready 2024-08-07 06:57:26 +08:00
README.md Fund & Withdraw Front-end Ready 2024-08-07 08:50:52 +08:00
yarn.lock First commit 2024-08-07 06:07:02 +08:00

Smart Contract Front End

This project will connect local blockchain, will call Metamask Google Chrome Exntension to fund the Smart Contract.

Import

https://docs.ethers.org/v5/getting-started/

https://github.com/ethers-io/ethers.js/releases

esm - support module
umd - follow UMD pattern (Universal Module Definition)

Test localhost hardhat node

  • yarn hardhat node -> get private key
  • yarn hardhat deploy -> get smart contract address
  • Ensure ABI updated -> ./artifacts/contracts/FundMe.sol/FundMe.json -> Only abi object
  • Ensure Metamask Added localhost network
    • Setting -> Networks -> Add a network
    • RPC URL from VS code: http://127.0.0.1:8545/
    • Default Hardhat node Chain ID from VS code: 31337
    • Currency Symbol ETH (Or Any)
  • MetaMark add account via private key
  • Connect With the added account
  • MetaMask Prompt Error - Reset account
    • Due to localhost hardhat node restarted, nonce start from 0 again