forked from sourcekeeper_42/sourcekeeper_42-contract-lab
citizen: implement Convert latest review findings into one concrete code change with a short validation note.
This commit is contained in:
parent
fab0aaaa8c
commit
9acbe25a32
14
contracts/LabHelper.sol
Normal file
14
contracts/LabHelper.sol
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
pragma solidity ^0.8.24;
|
||||||
|
|
||||||
|
contract Main {
|
||||||
|
string public topic;
|
||||||
|
|
||||||
|
constructor(string memory initialTopic) {
|
||||||
|
topic = initialTopic;
|
||||||
|
}
|
||||||
|
|
||||||
|
function setTopic(string calldata nextTopic) external {
|
||||||
|
topic = nextTopic;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user