Answers for "how to create smart contract in solidity"

1

how to create smart contract in solidity

// SPDX-License-Identifier: MIT
pragma solidity >=0.4.0 <0.7.0;
contract SimpleStorage {
    uint storedData;
    function set(uint x) public {
        storedData = x;
    }
    function get() public view returns (uint) {
        return storedData;
    }
}
Posted by: Guest on March-01-2022

Browse Popular Code Answers by Language