Storage

Description:

Smart contract deployed on Ethereum with Factory features.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.8.2 <0.9.0;

/**
 * @title Storage
 * @dev Store & retrieve value in a variable
 * @custom:dev-run-script ./scripts/deploy_with_ethers.ts
 */
contract Storage {

    uint256 number;

    /**
     * @dev Store value in variable
     * @param num value to store
     */
    function store(uint256 num) public {
        number = num;
    }

    /**
     * @dev Return value 
     * @return value of 'number'
     */
    function retrieve() public view returns (uint256){
        return number;
    }
}

Tags:
Factory|addr:0x3fc9c60f41aa335026c06cf971058b889c3d67db|verified:true|block:23546810|tx:0x0030d6049797f8fa3e91575d9b11affdfe79a1a2038b355bd57b09843683814c|first_check:1760093019

Submitted on: 2025-10-10 12:43:39

Comments

Log in to comment.

No comments yet.