This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.30; | |
/** | |
* @title ModifiedClickCounter | |
* @dev A contract that modifies the click count based on the number of times the click function is called. | |
* The first call increments the counter by 1, and subsequent calls double the counter value. | |
*/ | |
contract ModifiedClickCounter { | |
uint256 public counter; // State variable to store the counter value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.30; | |
/** @title SaveMultipleNames | |
* @dev A simple contract to save and retrieve multiple names. | |
*/ | |
contract SaveMultipleNames { | |
string[] public names; // User's names | |
// Function to save names |