This is my first smart contract written in Solidity as part of my Web3 learning journey.
The goal of this project is to understand the basics of smart contracts and start building consistently on GitHub.
- Stores a message on the blockchain
- Initializes the message with "Hello, Web3!"
- Allows anyone to update the message using a public function
- Solidity
- Remix IDE (browser-based Ethereum IDE)
- Open https://remix.ethereum.org
- Create a new file named
HelloWorld.sol - Paste the contract code
- Compile using Solidity version
0.8.x - Deploy the contract
- Call the
message()function to read the value - Call
updateMessage()to change the stored message