# Hello Architect **Published by:** [tonythanh2012](https://paragraph.com/@tonythanh/) **Published on:** 2025-11-01 **URL:** https://paragraph.com/@tonythanh/hello-architect ## Content // SPDX-License-Identifier: MIT pragma solidity ^0.8.30; contract HelloArchitect { string private greeting; // Event emitted when the greeting is changed event GreetingChanged(string newGreeting); // Constructor that sets the initial greeting to "Hello Architect!" constructor() { greeting = "Hello Architect!"; } // Setter function to update the greeting function setGreeting(string memory newGreeting) public { greeting = newGreeting; emit GreetingChanged(newGreeting); } // Getter function to return the current greeting function getGreeting() public view returns (string memory) { return greeting; } } ## Publication Information - [tonythanh2012](https://paragraph.com/@tonythanh/): Publication homepage - [All Posts](https://paragraph.com/@tonythanh/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@tonythanh): Subscribe to updates