Skip to content

Instantly share code, notes, and snippets.

View pursonchen's full-sized avatar
🏠
Working from home

pursonchen

🏠
Working from home
View GitHub Profile
@pursonchen
pursonchen / .deps...npm...hardhat...console.sol
Created January 18, 2023 12:36
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=undefined&optimize=undefined&runs=undefined&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 {
https://press.one/p/v?s=23088fd2eec27b43d1248b9e197d27c34cb4c941ebf00c270dd033777cb9211768255ebaf6a1942c78b6437d35b62839a8f9d01414929521c146e7fdf27ce55c0&h=c9d5c3cd0697ac774413320bd202c4b829e5eea3777ec7fe4630248b27e8dd10&a=e76acfe54d9815558c2e71b4a458d9e581db814c&f=P1&v=3