Skip to content

Instantly share code, notes, and snippets.

View cboi019's full-sized avatar

Okoronkwo Charles cboi019

  • 18:17 (UTC -12:00)
View GitHub Profile
@cboi019
cboi019 / .deps...npm...hardhat...console.sol
Created September 29, 2025 17:42
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.30+commit.73712a01.js&optimize=false&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
@cboi019
cboi019 / contracts...SimpleStorage.sol
Created September 28, 2025 01:14
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.29+commit.ab55807c.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30; //First Add Version.
contract simpleStorage {
// Data Types for Solidity: Boolean, uint, int, address, bytes, string
// uint = unsigned integer (isn't positive or negative, just positive)
uint256 public favNum;
function store(uint256 _favNumber) public {
favNum = _favNumber;