A basic Solidity smart contract for reading and updating a message, along with Mocha and Ganache tests for local development and deployment on the Sepolia test network.
This project contains a Solidity smart contract designed to showcase basic functionality. The contract allows you to read and update a message. It also includes a set of Mocha tests to ensure the contract works as expected.
Before you begin, ensure you have met the following requirements:
- Node.js and npm installed (for running tests and scripts).
- An Ethereum wallet with test Ether for deploying the contract on the Sepolia test network.
- Ganache installed (for local development and testing).
-
Clone the repository:
git clone https://github.com/Cannon07/Solidity-Test-Project.git
-
Change into the project directory:
cd Solidity-Test-Project
-
Install project dependencies:
npm install
To deploy the contract on the Sepolia test network, follow these steps:
-
Update the deploy.js file with your wallet mnemonics and Sepolia network configuration.
-
Deploy the contract:
node deploy.js
To run the Mocha tests, use the following command:
npm run test
Contributions are welcome! If you find any issues or have improvements to suggest, please open an issue or create a pull request.