View MyStorage.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ............... */ | |
contract MyStorage { | |
// This creates a variable called Number | |
// private is a solidity keyword to make variable invisible to the public | |
// uint256 means unsigned integer and can take a memory of 2²⁵⁶⁻¹ | |
uint256 private Number; | |
// This function assigns the inputed number to the Number variable | |
function storeNumber(uint256 _Number) public { |
View MyStorage.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.7; | |
contract MyStorage { | |
} |