Skip to content

Instantly share code, notes, and snippets.

View pofec2010's full-sized avatar

Femi Cornelius Popoola pofec2010

View GitHub Profile
@pofec2010
pofec2010 / SimpleStorage.sol
Last active February 17, 2026 09:16
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.24+commit.e11b9ed9.js&optimize=undefined&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24; // solidity versions
contract SimpleStorage {
// favoriteNumber get initialized to 0 if no value is given
uint256 public favoriteNumber; // 0
// uint256() listoffavorNumber;
struct Person{uint256 favoriteNumber; string name;}
@pofec2010
pofec2010 / .deps...npm...hardhat...console.sol
Created February 15, 2026 10:25
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.19+commit.7dd6d404.js&optimize=undefined&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
library console {
address constant CONSOLE_ADDRESS =
0x000000000000000000636F6e736F6c652e6c6f67;
function _sendLogPayloadImplementation(bytes memory payload) internal view {
address consoleAddress = CONSOLE_ADDRESS;
/// @solidity memory-safe-assembly
@pofec2010
pofec2010 / .prettierrc.json
Created February 15, 2026 01:52
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.18+commit.87f61d96.js&optimize=undefined&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false