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:0xc6065e781943c5df6a06b89c22dc5fcbc5f1947e|verified:true|block:23505078|tx:0xcd15ce74e3a2a553eb5670da324651f8b4b14813cf4d194a88f9d75a1d26ba95|first_check:1759588938

Submitted on: 2025-10-04 16:42:18

Comments

Log in to comment.

No comments yet.