Skip to content

Instantly share code, notes, and snippets.

View Oyinbayode's full-sized avatar

Akinleye Oyinbayode Peters Oyinbayode

View GitHub Profile
Oyinbayode / MyStorage.sol
Last active October 28, 2022 08:04
My Storage
/* ............... */
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 {
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract MyStorage {