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
0a664e0dda
commit
a6539b414d
@ -1,4 +1,14 @@
|
|||||||
function testContract(address contractAddress) public {
|
// SPDX-License-Identifier: MIT
|
||||||
require(contractAddress != address(0), "Contract address cannot be zero");
|
pragma solidity ^0.8.24;
|
||||||
// ... rest of the function remains the same
|
|
||||||
|
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