saveCode

Description:

Smart contract deployed on Ethereum with Factory features.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

{{
  "language": "Solidity",
  "sources": {
    "contracts/1_Storage.sol": {
      "content": "// 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 saveCode {

    uint8 number;

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

    /**
     * @dev Return value 
     * @return value of 'number'
     */
    function retrieve() public view returns (uint8){
        return number;
    }
}"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": false,
      "runs": 200
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    },
    "remappings": []
  }
}}

Tags:
Factory|addr:0xa8e2a51c2ee51f9ea37a362ab6586b4a18f4c039|verified:true|block:23710281|tx:0xe531559c00a8434c16c23467d3292e280b86a553b1ceb4c850e3325b2c4fa27e|first_check:1762082457

Submitted on: 2025-11-02 12:20:58

Comments

Log in to comment.

No comments yet.