This project provides a smart contract that allows for creating joint bank accounts. Each bank account can have up to 4 owners, each of which must approve any withdrawl of funds. As well as completed contract there is are automated test cases and front-end applications that allows you to interact with some functionality of the contract.
To test and deploy the smart contract follow the steps below.
- Install Node.js
- Clone the repository:
git clone https://github.com/arudnytskyi/Bank-Account-dApp.git cd Bank-Account-dAppnpm install- To test the contract run
npx hardhat test - To deploy the contract to your
localhostnetwork do the following:npx hardhat nodenpx hardhat run --network localhost ./script/deploy.js
- Install the Liveserver Extension in VSCode.
- Open base.html
- Click the button that says "Go Live" in the bottom right hand corner of your VSCode.
- Import any accounts you need into MetaMask and change your MetaMask network to "Hardhat".
- Interact with the contract!