Skip to content

Instantly share code, notes, and snippets.

View abhiramelf's full-sized avatar
🏠
Working from home

Abhiram A abhiramelf

🏠
Working from home
View GitHub Profile
//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
//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