Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 700 Bytes

README.md

File metadata and controls

41 lines (35 loc) · 700 Bytes

Fund me contract with Hardhat

This is a FCC web3 code camp project. It allows people to crowdfunding, and owner to withdraw the fund.

Deploying the contract by:

npx hardhat deploy

Deploying to localhost:

npx hardhat node

then, run command in another terminal window:

npx hardhat deploy --network localhost

Deploying to Sepolia testnet:

npx hardhat deplopy --network sepolia

Scripts

npx hardhat run scripts/fund.ts --network localhost

or

npx hardhat run scripts/withdraw.ts --network localhost

Testing

Unit test

npm run test

Staging test on testnet

npm run test:staging