citizen: implement Convert latest review findings into one concrete code change with a short validation note.
This commit is contained in:
parent
0a664e0dda
commit
7aa6ed67b0
@ -1,4 +1,14 @@
|
||||
function testContract(address contractAddress) public {
|
||||
require(contractAddress != address(0), "Contract address cannot be zero");
|
||||
// ... rest of the function remains the same
|
||||
}
|
||||
// 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