hongbo-miao/hongbomiao.com

View on GitHub
ethereum/src/contracts/Storage.sol

Summary

Maintainability
Test Coverage
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Storage {
    uint256 private number;

    function store(uint256 num) public {
        number = num;
    }

    function retrieve() public view returns (uint256) {
        return number;
    }
}