Skip to content

Instantly share code, notes, and snippets.

View codeking-mike's full-sized avatar
😋
Learning Laravel

Michael Idam codeking-mike

😋
Learning Laravel
View GitHub Profile
@codeking-mike
codeking-mike / .deps...npm....resolution-index.json
Created April 12, 2026 21:32
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"SimpleStorage.sol": {
"__sources__": {
"SimpleStorage.sol": {
"content": "// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.18;\r\n\r\ncontract SimpleStorage{\r\n\r\n uint256 public myFavoriteNumber; //default value of unint256 is 0 and the default value of a state varibale is internal\r\n uint256[] listOfFavNumbers;\r\n\r\n struct Person{\r\n uint256 favoriteNumber;\r\n string name;\r\n \r\n }\r\n\r\n Person public james = Person({favoriteNumber: 2, name: \"James\"});\r\n Person[] public myPeople;\r\n mapping(string => uint256) public nameToFavoriteNumber; //mapping is a key value pair (hash table)\r\n\r\n function store(uint256 _favNumber) public {\r\n myFavoriteNumber = _favNumber;\r\n }\r\n function retrieve() public view returns(uint256){\r\n return myFavoriteNumber;\r\n }\r\n function addPerson(uint256 _favNum, string memory _name) public {\r\n myPeople.push(Person(_favNum, _name));\r\n