
6 Followers
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; contract MessageBoard { string public message; address public owner; event MessageUpdated(string newMessage, address updatedBy); constructor() { owner = msg.sender; message = "Hello Blockchain!"; } function setMessage(string memory _message) public { message = _message; emit MessageUpdated(_message, msg.sender); } function getMessage() public view returns (string memory) { return message; } }
One Day, I will be Rich because I am a Smart Contract Developer
We will build on @base.base.eth
I build smart contracts on Base. Follow me for Solidity tutorials, airdrop guides, and daily Web3 updates.