Donation smart contract

Overview

This project showcases the implementation of a Solidity smart contract named "Donation" that allows users to donate an amount and check their balances. The primary focus of the contract is to demonstrate the usage of the revert, assert, and require statements, illustrating the effective handling of errors in Solidity.

Getting Started

Follow the following steps to get started:

Prerequisites

  • Node.js and npm installed on your machine.

  • Clone this repository locally - git clone https://github.com/your-username/your-contract.git

  • Change directory into your project - cd your-contract-app

  • Install dependencies using npm install or yarn

  • Compile the contract using Hardhat - npx hardhat compile or yarn hardhat compile

  • Deploy the contract using Hardhat. npx hardhat node or yarn hardhat node npx hardhat ignition deploy ./ignition/modules/Lock.ts --network localhost or yarn hardhat ignition deploy ./ignition/modules/Lock.ts --network localhost

Author

  • 0xKatoragashua