Skip to content

Instantly share code, notes, and snippets.

View ItsLame's full-sized avatar
🧠
learning as i go

ItsLame

🧠
learning as i go
  • Sydney, Australia
View GitHub Profile
@ItsLame
ItsLame / gist:132e3d50f1974b7e72788772fab81aa5
Created June 3, 2022 14: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.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
We couldn’t find that file to show.
@ItsLame
ItsLame / .deps...npm...hardhat...console.sol
Created June 3, 2022 14: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.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;
library console {
address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);
function _sendLogPayload(bytes memory payload) private view {
uint256 payloadLength = payload.length;
address consoleAddress = CONSOLE_ADDRESS;
assembly {