Description:
Smart contract deployed on Ethereum with Factory features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"sources": {
"HelloArchitect.sol": {
"content": "// SPDX-License-Identifier: MIT\r
pragma solidity ^0.8.30;\r
\r
contract HelloArchitect {\r
string private greeting;\r
\r
// Event emitted when the greeting is changed\r
event GreetingChanged(string newGreeting);\r
\r
// Constructor that sets the initial greeting to "Hello Architect!"\r
constructor() {\r
greeting = "Hello Architect!";\r
}\r
\r
// Setter function to update the greeting\r
function setGreeting(string memory newGreeting) public {\r
greeting = newGreeting;\r
emit GreetingChanged(newGreeting);\r
}\r
\r
// Getter function to return the current greeting\r
function getGreeting() public view returns (string memory) {\r
return greeting;\r
}\r
}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}
}}
Submitted on: 2025-11-03 15:21:20
Comments
Log in to comment.
No comments yet.