forked from p10node/swisstronik-testnet2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHello_swtr.sol
More file actions
29 lines (24 loc) · 785 Bytes
/
Hello_swtr.sol
File metadata and controls
29 lines (24 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
//This contract is only intended for testing purposes
contract Swisstronik {
string private message;
/**
* @dev Constructor is used to set the initial message for the contract
*/
constructor() payable {}
/**
* @dev setMessage() updates the stored message in the contract
* @param _message The new message to replace the existing one
*/
function setMessage(string memory _message) public {
message = _message;
}
/**
* @dev getMessage() retrieves the currently stored message in the contract
* @return The message associated with the contract
*/
function getMessage() public view returns (string memory) {
return message;
}
}